Open Dok11 opened 4 years ago
My hotfix:
const hexRangeRegExp = new RegExp(/\\x\{([\dabcdef]{4})\}-\\x\{([\dabcdef]{4})\}/ig);
const fixedPattern = pattern.replace(hexRangeRegExp, '\\u$1-\\u$2');
pcre(fixedPattern, []);
i think [\dabcdef]{4}
may be replace to better pattern.
But
/[\x{0600}-\x{06FF}]/
is valid PCRE