nitely / nim-regex

Pure Nim regex engine. Guarantees linear time matching
https://nitely.github.io/nim-regex/
MIT License
225 stars 20 forks source link

Verify input is utf-8 #131

Closed nitely closed 9 months ago

nitely commented 9 months ago

Add utf-8 validation to regex and input strings. For regex it's always on. For input text only verify in debug mode.

The behavior on invalid utf-8 input for release/danger mode is still undefined. Not ideal but better than nothing.