@archoleat/reglib 1.3.0 → 1.3.1

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 +4 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8,14 +8,17 @@ declare const selectors: {
8
8
  };
9
9
  child: {
10
10
  CLASS_CHILD_REGEX: string;
11
+ CLASS_SIBLING_REGEX: string;
11
12
  ATTRIBUTE_CHILD_REGEX: string;
13
+ ATTRIBUTE_SIBLING_REGEX: string;
12
14
  };
13
15
  nested: {
14
16
  ATTRIBUTE_REGEX: string;
15
17
  CLASS_REGEX: string;
16
18
  ELEMENT_REGEX: string;
17
19
  MODIFIER_REGEX: string;
18
- NESTED_REGEX: string;
20
+ NESTED_CHILD_REGEX: string;
21
+ NESTED_SIBLING_REGEX: string;
19
22
  };
20
23
  };
21
24
 
package/index.js CHANGED
@@ -1 +1 @@
1
- const _="(Italic)",R="(Variable)",t="[A-Z][a-z]",c=`^${t}+(${t}+)?`,s=["Thin","Hairline","ExtraLight","UltraLight","Light","Regular","Medium","SemiBold","DemiBold","Bold","ExtraBold","UltraBold","Black","Heavy","ExtraBlack","UltraBlack"].join("|"),G=["otf","ttf","woff","woff2"].join("|"),X=`(${c})`,a=`(${s})`,T=`(${G})$`,L=[`${X}-${a}`,`(${_}?)(${R}?)`,`\\.${T}`].join(""),S=new RegExp(L),E="[a-z0-9]",r=String.raw`\[(.*?)\]`,i=String.raw`\.(.*?)`,$="__",I="--",l=`[a-z]${E}*(-${E}+)*`,o=`(${$}${E}+(-${E}+)*)`,n=`(${I}${E}+(-${E}+)*)`,e=String.raw`&[ >+][^ ,{}]+`,A=String.raw`\.${E}+[ >+][^ ,{}]+`,B=String.raw`\[.*?\][ >+][^ ,{}]+`,N={bem:{BLOCK_REGEX:l,ELEMENT_REGEX:o,MODIFIER_REGEX:n},child:{CLASS_CHILD_REGEX:A,ATTRIBUTE_CHILD_REGEX:B},nested:{ATTRIBUTE_REGEX:r,CLASS_REGEX:i,ELEMENT_REGEX:o,MODIFIER_REGEX:n,NESTED_REGEX:e}};export{S as FONT_FILE_NAME_REGEX,N as selectors};
1
+ const o="(Italic)",R="(Variable)",t="[A-Z][a-z]",c=`^${t}+(${t}+)?`,S=["Thin","Hairline","ExtraLight","UltraLight","Light","Regular","Medium","SemiBold","DemiBold","Bold","ExtraBold","UltraBold","Black","Heavy","ExtraBlack","UltraBlack"].join("|"),G=["otf","ttf","woff","woff2"].join("|"),s=`(${c})`,r=`(${S})`,I=`(${G})$`,L=[`${s}-${r}`,`(${o}?)(${R}?)`,`\\.${I}`].join(""),T=new RegExp(L),E="[a-z0-9]",X=String.raw`\[(.*?)\]`,a=String.raw`\.(.*?)`,i="__",$="--",l=`[a-z]${E}*(-${E}+)*`,_=`(${i}${E}+(-${E}+)*)`,n=`(${$}${E}+(-${E}+)*)`,B=String.raw`&>[^ ,{}]+`,A=String.raw`&\+[^ ,{}]+`,N=String.raw`\.${E}+>[^ ,{}]+`,e=String.raw`\.${E}+\+[^ ,{}]+`,g=String.raw`\[.*?\]+>[^ ,{}]+`,O=String.raw`\[.*?\]+[^ ,{}]+`,w={bem:{BLOCK_REGEX:l,ELEMENT_REGEX:_,MODIFIER_REGEX:n},child:{CLASS_CHILD_REGEX:N,CLASS_SIBLING_REGEX:e,ATTRIBUTE_CHILD_REGEX:g,ATTRIBUTE_SIBLING_REGEX:O},nested:{ATTRIBUTE_REGEX:X,CLASS_REGEX:a,ELEMENT_REGEX:_,MODIFIER_REGEX:n,NESTED_CHILD_REGEX:B,NESTED_SIBLING_REGEX:A}};export{T as FONT_FILE_NAME_REGEX,w 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.3.0",
4
+ "version": "1.3.1",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "email": "archoleat@gmail.com",