roamjs-components 0.49.5 → 0.49.6
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/package.json +3 -2
- package/util/toFlexRegex.js +1 -1
- package/util/toFlexRegex.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roamjs-components",
|
|
3
3
|
"description": "Description for roamjs-components",
|
|
4
|
-
"version": "0.49.
|
|
4
|
+
"version": "0.49.6",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"version": "npm run format && git add -A src",
|
|
15
15
|
"postversion": "git push origin main && git push --tags",
|
|
16
16
|
"pretest": "npm run lint",
|
|
17
|
-
"
|
|
17
|
+
"jest": "jest --config jestconfig.json",
|
|
18
|
+
"test": "npm run jest"
|
|
18
19
|
},
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"files": [
|
package/util/toFlexRegex.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const toFlexRegex = (key) => new RegExp(`^\\s*${key}\\s*(#\\.[\\w\\d-]*\\s*)?$`, "i");
|
|
3
|
+
const toFlexRegex = (key) => new RegExp(`^\\s*${key.replace(/([()])/g, "\\$1")}\\s*(#\\.[\\w\\d-]*\\s*)?$`, "i");
|
|
4
4
|
exports.default = toFlexRegex;
|
|
5
5
|
//# sourceMappingURL=toFlexRegex.js.map
|
package/util/toFlexRegex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toFlexRegex.js","sourceRoot":"","sources":["../src/util/toFlexRegex.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,GAAW,EAAU,EAAE,CAC1C,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"toFlexRegex.js","sourceRoot":"","sources":["../src/util/toFlexRegex.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,GAAW,EAAU,EAAE,CAC1C,IAAI,MAAM,CACR,QAAQ,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,4BAA4B,EAClE,GAAG,CACJ,CAAC;AAEJ,kBAAe,WAAW,CAAC"}
|