@archoleat/reglib 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -19,6 +19,8 @@ declare const selectors: {
19
19
  CLASS_REGEX: string;
20
20
  ELEMENT_REGEX: string;
21
21
  MODIFIER_REGEX: string;
22
+ NESTED_ATTRIBUTE_REGEX: string;
23
+ NESTED_CLASS_REGEX: string;
22
24
  NESTED_ATTRIBUTE_CHILD_REGEX: string;
23
25
  NESTED_ATTRIBUTE_SIBLING_REGEX: string;
24
26
  NESTED_CLASS_CHILD_REGEX: string;
package/index.js CHANGED
@@ -1 +1 @@
1
- const o="(Italic)",S="(Variable)",t="[A-Z][a-z]",R=`^${t}+(${t}+)?`,c=["Thin","Hairline","ExtraLight","UltraLight","Light","Regular","Medium","SemiBold","DemiBold","Bold","ExtraBold","UltraBold","Black","Heavy","ExtraBlack","UltraBlack"].join("|"),G=["otf","ttf","woff","woff2"].join("|"),r=`(${R})`,I=`(${c})`,T=`(${G})$`,s=[`${r}-${I}`,`(${o}?)(${S}?)`,`\\.${T}`].join(""),L=new RegExp(s),E="[a-z0-9]",X=String.raw`\[(.*?)\]`,a=String.raw`\.(.*?)`,i="__",$="--",B=`[a-z]${E}*(-${E}+)*`,_=`(${i}${E}+(-${E}+)*)`,n=`(${$}${E}+(-${E}+)*)`,A=String.raw`[^ ,{}]+\+[^ ,{}]+`,N=String.raw`[^ ,{}]+>[^ ,{}]+`,g=String.raw`\[.*?\]+[^ ,{}]+`,l=String.raw`\[.*?\]+>[^ ,{}]+`,e=String.raw`\.${E}+\+[^ ,{}]+`,w=String.raw`\.${E}+>[^ ,{}]+`,D=String.raw`&\[.*?\]+[^ ,{}]+`,C=String.raw`&\[.*?\]+>[^ ,{}]+`,O=String.raw`&\.${E}+\+[^ ,{}]+`,M=String.raw`&\.${E}+>[^ ,{}]+`,F={bem:{BLOCK_REGEX:B,ELEMENT_REGEX:_,MODIFIER_REGEX:n},child:{CHILD_REGEX:N,SIBLING_REGEX:A,CLASS_CHILD_REGEX:w,CLASS_SIBLING_REGEX:e,ATTRIBUTE_CHILD_REGEX:l,ATTRIBUTE_SIBLING_REGEX:g},nested:{ATTRIBUTE_REGEX:X,CLASS_REGEX:a,ELEMENT_REGEX:_,MODIFIER_REGEX:n,NESTED_ATTRIBUTE_CHILD_REGEX:C,NESTED_ATTRIBUTE_SIBLING_REGEX:D,NESTED_CLASS_CHILD_REGEX:M,NESTED_CLASS_SIBLING_REGEX:O}};export{L as FONT_FILE_NAME_REGEX,F as selectors};
1
+ const S="(Italic)",o="(Variable)",t="[A-Z][a-z]",R=`^${t}+(${t}+)?`,T=["Thin","Hairline","ExtraLight","UltraLight","Light","Regular","Medium","SemiBold","DemiBold","Bold","ExtraBold","UltraBold","Black","Heavy","ExtraBlack","UltraBlack"].join("|"),r=["otf","ttf","woff","woff2"].join("|"),c=`(${R})`,G=`(${T})`,I=`(${r})$`,s=[`${c}-${G}`,`(${S}?)(${o}?)`,`\\.${I}`].join(""),L=new RegExp(s),E="[a-z0-9]",X=String.raw`\[(.*?)\]`,a=String.raw`\.(.*?)`,i="__",$="--",A=`[a-z]${E}*(-${E}+)*`,_=`(${i}${E}+(-${E}+)*)`,n=`(${$}${E}+(-${E}+)*)`,B=String.raw`[^ ,{}]+\+[^ ,{}]+`,N=String.raw`[^ ,{}]+>[^ ,{}]+`,g=String.raw`\[.*?\]+[^ ,{}]+`,l=String.raw`\[.*?\]+>[^ ,{}]+`,w=String.raw`\.${E}+\+[^ ,{}]+`,D=String.raw`\.${E}+>[^ ,{}]+`,e=String.raw`&\[.*?\]+[^ ,{}]+`,C=String.raw`&\[.*?\]+>[^ ,{}]+`,O=String.raw`&\.${E}+\+[^ ,{}]+`,M=String.raw`&\.${E}+>[^ ,{}]+`,F=String.raw`&\[.*?\]`,H=String.raw`&\.${E}+`,U={bem:{BLOCK_REGEX:A,ELEMENT_REGEX:_,MODIFIER_REGEX:n},child:{CHILD_REGEX:N,SIBLING_REGEX:B,CLASS_CHILD_REGEX:D,CLASS_SIBLING_REGEX:w,ATTRIBUTE_CHILD_REGEX:l,ATTRIBUTE_SIBLING_REGEX:g},nested:{ATTRIBUTE_REGEX:X,CLASS_REGEX:a,ELEMENT_REGEX:_,MODIFIER_REGEX:n,NESTED_ATTRIBUTE_REGEX:F,NESTED_CLASS_REGEX:H,NESTED_ATTRIBUTE_CHILD_REGEX:C,NESTED_ATTRIBUTE_SIBLING_REGEX:e,NESTED_CLASS_CHILD_REGEX:M,NESTED_CLASS_SIBLING_REGEX:O}};export{L as FONT_FILE_NAME_REGEX,U as selectors};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archoleat/reglib",
3
3
  "description": "Library with ready-to-use regex",
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "email": "archoleat@gmail.com",