search: disable unicode support

This commit is contained in:
Blaž Hrastnik 2021-06-12 23:35:25 +09:00
parent ea7aad99b8
commit bddf749fba

View File

@ -67,7 +67,7 @@ pub fn new(pattern: &str) -> Result<Searcher, RegexError> {
// Create Regex DFAs for all search directions.
let mut builder = dense::Builder::new();
let builder = builder.case_insensitive(!has_uppercase);
let builder = builder.case_insensitive(!has_uppercase).unicode(false);
let left_fdfa = builder.clone().reverse(true).build(pattern)?;
let left_rdfa = builder