Skip to content

Commit

Permalink
Do not apply the normalization in ASCII only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Feb 22, 2022
1 parent d1ca54d commit 264fe31
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ type Pattern
on the encoding, we normalize all input.
build_matcher : Text -> Integer -> Integer -> Java_Matcher
build_matcher input start end =
normalized_input = Text_Utils.normalize input
normalized_input = if this.options.contains Global_Option.Ascii_Matching then input else
Text_Utils.normalize input
internal_matcher = this.internal_pattern.matcher normalized_input . region start end

if this.options.contains No_Anchoring_Bounds then
Expand Down

0 comments on commit 264fe31

Please sign in to comment.