re2js 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.cjs.cjs +2 -2
- package/build/index.cjs.cjs.map +1 -1
- package/build/index.esm.js +2 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.umd.js +2 -2
- package/build/index.umd.js.map +1 -1
- package/package.json +1 -1
package/build/index.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* re2js
|
|
3
3
|
* RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
|
|
4
4
|
*
|
|
5
|
-
* @version v1.3.
|
|
5
|
+
* @version v1.3.3
|
|
6
6
|
* @author Alexey Vasiliev
|
|
7
7
|
* @homepage https://github.com/le0pard/re2js#readme
|
|
8
8
|
* @repository github:le0pard/re2js
|
|
@@ -1138,7 +1138,7 @@
|
|
|
1138
1138
|
}
|
|
1139
1139
|
return str.split('').map(s => {
|
|
1140
1140
|
const c = s.codePointAt(0);
|
|
1141
|
-
if (c === Codepoint.CODES
|
|
1141
|
+
if (c === Codepoint.CODES.get('\\') || c === Codepoint.CODES.get('$')) {
|
|
1142
1142
|
return `\\${s}`;
|
|
1143
1143
|
}
|
|
1144
1144
|
return s;
|