@note3/utils 0.1.17 → 0.1.18

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.
@@ -1,2 +1,2 @@
1
- import{a,b}from"./chunk-UCWJ4E2C.min.js";import"./chunk-WVHDYKM7.min.js";import"./chunk-MXMMU6NF.min.js";export{b as collectSubtreeApplogs,a as mapAndRecurseKids};
1
+ import{a,b}from"./chunk-WZKDDQT2.min.js";import"./chunk-KUB6PLBB.min.js";import"./chunk-MXMMU6NF.min.js";export{b as collectSubtreeApplogs,a as mapAndRecurseKids};
2
2
  //# sourceMappingURL=applog-collection.min.js.map
@@ -0,0 +1,2 @@
1
+ import{h as p}from"./chunk-LDNVHZO7.min.js";import{j as n,k as o}from"./chunk-POX3PUJK.min.js";function t(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function i(e,r=""){return new RegExp(`${n.source}(${t(e)})${o.source}`,r)}function T(e,r){return p(i(r),e)!==null}export{i as a,T as b};
2
+ //# sourceMappingURL=chunk-EI3JEXCC.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js","../src/tag-matching.ts"],"sourcesContent":["export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","import escapeStringRegexp from 'escape-string-regexp'\nimport { RE_TAG_CONTEXT_PRE, RE_TAG_CONTEXT_POST } from './note3-regex-constants'\nimport { plainContentMatchTagGeneric } from './note3-utils-nodeps'\n\nexport function getRegexForTagInContext(tag: string, flags = ''): RegExp {\n\treturn new RegExp(`${RE_TAG_CONTEXT_PRE.source}(${escapeStringRegexp(tag)})${RE_TAG_CONTEXT_POST.source}`, flags)\n}\n\nexport function plainContentMatchSpecificTag(content: string, tag: string) {\n\treturn plainContentMatchTagGeneric(\n\t\tgetRegexForTagInContext(tag),\n\t\tcontent,\n\t) !== null\n}\n"],"mappings":"+FAAe,SAARA,EAAoCC,EAAQ,CAClD,GAAI,OAAOA,GAAW,SACrB,MAAM,IAAI,UAAU,mBAAmB,EAKxC,OAAOA,EACL,QAAQ,sBAAuB,MAAM,EACrC,QAAQ,KAAM,OAAO,CACxB,CCNO,SAASC,EAAwBC,EAAaC,EAAQ,GAAY,CACxE,OAAO,IAAI,OAAO,GAAGC,EAAmB,MAAM,IAAIC,EAAmBH,CAAG,CAAC,IAAII,EAAoB,MAAM,GAAIH,CAAK,CACjH,CAEO,SAASI,EAA6BC,EAAiBN,EAAa,CAC1E,OAAOO,EACNR,EAAwBC,CAAG,EAC3BM,CACD,IAAM,IACP","names":["escapeStringRegexp","string","getRegexForTagInContext","tag","flags","RE_TAG_CONTEXT_PRE","escapeStringRegexp","RE_TAG_CONTEXT_POST","plainContentMatchSpecificTag","content","plainContentMatchTagGeneric"]}
@@ -75,4 +75,4 @@ lodash-es/lodash.js:
75
75
  @noble/hashes/utils.js:
76
76
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
77
77
  */
78
- //# sourceMappingURL=chunk-WVHDYKM7.min.js.map
78
+ //# sourceMappingURL=chunk-KUB6PLBB.min.js.map