Skip to content

Commit

Permalink
minimize supported unicode regex operations in the same way as hl for…
Browse files Browse the repository at this point in the history
… now
  • Loading branch information
grepsuzette committed Mar 4, 2020
1 parent 7743a9f commit 1578d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yaml/Parser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ class Parser
public static var PATTERN_NON_PRINTABLE = ~/[\x{00}-\x{08}\x{0B}\x{0C}\x{0E}-\x{1F}\x{7F}-\x{84}\x{86}-\x{9F}\x{FFFE}\x{FFFF}]/u;
#elseif (js || flash9 || java)
public static var PATTERN_NON_PRINTABLE = ~/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uD800-\uDFFF\uFFFE\uFFFF]/u;
#elseif (hl)
#elseif (hl || php)
public static var PATTERN_NON_PRINTABLE = ~/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F]/;
#else
#error "Compilation target not supported due to lack of Unicode RegEx support."
Expand All @@ -2012,7 +2012,7 @@ class Parser
public static var PATTERN_NON_ASCII_LINE_BREAKS = ~/[\x{85}\x{2028}\x{2029}]/u;
#elseif (js || flash9 || java)
public static var PATTERN_NON_ASCII_LINE_BREAKS = ~/[\x85\u2028\u2029]/u;
#elseif (hl)
#elseif (hl || php)
public static var PATTERN_NON_ASCII_LINE_BREAKS = ~/[\x85]/;
#else
#error "Compilation target not supported due to lack of Unicode RegEx support."
Expand Down

0 comments on commit 1578d54

Please sign in to comment.