Searched refs:braceEscape (Results 1 – 7 of 7) sorted by relevance
22 const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&'); function93 ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));96 ranges.push(braceEscape(c));105 ranges.push(braceEscape(c + '-'));115 ranges.push(braceEscape(c));
1 …braceEscape = (s: string) => s.replace(/[[\\]\\\\-]/g, '\\\\$&')\n// escape all regexp magic chara…
25 const braceEscape = (s) => s.replace(/[[\]\\-]/g, '\\$&'); function96 ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c));99 ranges.push(braceEscape(c));108 ranges.push(braceEscape(c + '-'));118 ranges.push(braceEscape(c));
287 var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&"); function343 ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));345 ranges.push(braceEscape(c));352 ranges.push(braceEscape(c + "-"));361 ranges.push(braceEscape(c));