@hyperframes/lint 0.8.14 → 0.8.15
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/dist/browser.js +1 -7
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.js
CHANGED
|
@@ -96,13 +96,7 @@ function readDecodedAttr(tagSource, attr) {
|
|
|
96
96
|
return value;
|
|
97
97
|
}
|
|
98
98
|
function readJsonAttr(tagSource, attr) {
|
|
99
|
-
|
|
100
|
-
const escaped = attr.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
101
|
-
const match = tagSource.match(
|
|
102
|
-
new RegExp(`(?<![\\w-])${escaped}\\s*=\\s*(?:"([^"]*)"|'([^']*)')`, "i")
|
|
103
|
-
);
|
|
104
|
-
if (!match) return null;
|
|
105
|
-
return match[1] ?? match[2] ?? null;
|
|
99
|
+
return readDecodedAttr(tagSource, attr);
|
|
106
100
|
}
|
|
107
101
|
function collectCompositionIds(tags) {
|
|
108
102
|
const ids = /* @__PURE__ */ new Set();
|