Skip to content

Commit

Permalink
regex: enable safe handling of invalid UTF-8 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored and ElOceanografo committed May 4, 2021
1 parent 2c6d25a commit 59a035e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/regex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

include("pcre.jl")

const DEFAULT_COMPILER_OPTS = PCRE.UTF | PCRE.NO_UTF_CHECK | PCRE.ALT_BSUX | PCRE.UCP
const DEFAULT_COMPILER_OPTS = PCRE.UTF | PCRE.MATCH_INVALID_UTF | PCRE.ALT_BSUX | PCRE.UCP
const DEFAULT_MATCH_OPTS = PCRE.NO_UTF_CHECK

"""
Expand Down

0 comments on commit 59a035e

Please sign in to comment.