for-GET / jesse

jesse (JSon Schema Erlang) is an implementation of a JSON Schema validator for Erlang.
https://github.com/for-get/jesse
Apache License 2.0
126 stars 64 forks source link

Add support for unicode properties in pattern, etc. #112

Closed nalundgaard closed 2 years ago

nalundgaard commented 3 years ago

Resolves https://github.com/for-GET/jesse/issues/104.

Adds support for unicode properties "pattern" and "patternProperties" by adding re_options to the jesse application environment and making all uses of re:run/2 consult it. This effectively changes the previously hard-coded unicode option to ucp, but allows restoring the previous behavior (for better performance) by setting re_options to [unicode] instead of [ucp].

nalundgaard commented 3 years ago

I forgot about this for quite awhile, but noticed it in my queue today and took a stab. Please let me know if this will work.

seriyps commented 3 years ago

LGTM, thanks. Let's see if @andreineculau have any opinions

seriyps commented 2 years ago

I'll merge it on Tuesday 14th, if noone objects before that