@archoleat/reglib 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -2
- package/index.js +0 -1
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.0.
|
4
|
+
"version": "1.0.3",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": {
|
7
7
|
"email": "archoleat@gmail.com",
|
@@ -42,9 +42,11 @@
|
|
42
42
|
"#shared": "./src/shared/index.ts"
|
43
43
|
},
|
44
44
|
"exports": {
|
45
|
-
".": "./index.js"
|
45
|
+
".": "./index.js",
|
46
|
+
"./index.d.ts": "./index.d.ts"
|
46
47
|
},
|
47
48
|
"files": [
|
49
|
+
"index.d.ts",
|
48
50
|
"index.js"
|
49
51
|
],
|
50
52
|
"scripts": {
|
@@ -67,6 +69,7 @@
|
|
67
69
|
"@commitlint/cli": "^19.3.0",
|
68
70
|
"@commitlint/config-conventional": "^19.2.2",
|
69
71
|
"@commitlint/types": "^19.0.3",
|
72
|
+
"@rollup/plugin-alias": "^5.1.0",
|
70
73
|
"@rollup/plugin-typescript": "^11.1.6",
|
71
74
|
"@semantic-release/changelog": "^6.0.3",
|
72
75
|
"@semantic-release/git": "^10.0.1",
|
@@ -93,6 +96,7 @@
|
|
93
96
|
"remark-preset-lint-markdown-style-guide": "^6.0.0",
|
94
97
|
"remark-preset-lint-recommended": "^7.0.0",
|
95
98
|
"rollup": "^4.19.1",
|
99
|
+
"rollup-plugin-dts": "^6.1.1",
|
96
100
|
"rollup-plugin-esbuild": "^6.1.1",
|
97
101
|
"semantic-release": "^24.0.0",
|
98
102
|
"typescript": "^5.5.4",
|
package/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
const n="[A-Z][a-z]",S=`^${n}+(${n}+)?`,s=["Thin","Hairline","ExtraLight","UltraLight","Light","Regular","Medium","SemiBold","DemiBold","Bold","ExtraBold","UltraBold","Black","Heavy","ExtraBlack","UltraBlack"].join("|"),G=["otf","ttf","woff","woff2"].join("|"),r=`(${S})`,T=`(${s})`,c=`(${G})$`,w=new RegExp(`${r}-${T}\\.${c}`),_=String.raw`(?:_|__|-|\s)`,$=new RegExp(`${_}?(italic)`,"i"),a=new RegExp(`${_}?(var)`,"i"),g=new RegExp(String.raw`^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$`),i=new RegExp(String.raw`^[\sA-Za-zЁА-яё]+$`),L=new RegExp(String.raw`^\+[\d-]+$`),N=new RegExp(String.raw`^\S+$`,"i"),I=".html",R=".pug",O={HTML_EXTENSION_REGEX:I,PUG_EXTENSION_REGEX:R,FILE_EXTENSION_REGEX:new RegExp(String.raw`\.[^.]+$`),JS_EXTENSION_REGEX:new RegExp(String.raw`\.js$`),PUG_EXTENSION_REGEX_REGEX:new RegExp(`${R}$`),SCSS_EXTENSION_REGEX:new RegExp(String.raw`\.s[ac]ss$`),NODE_MODULES_REGEX:new RegExp("node_modules")},A={ALL_REGEX:new RegExp(String.raw`^\d+$`)},x={RU_REGEX:new RegExp(String.raw`^\+7 \((9\d{2,3})\) \d{3}-\d{2}-\d{2}$`)},E="[a-z0-9]",t=String.raw`?\[(.*)\]`,e=String.raw`?\.(.*)`,X="--",o="__",l={bem:{BLOCK_REGEX:`[a-z]${E}*(-${E}+)`,ELEMENT_REGEX:`(${o}${E}+(-${E}+)*)`,MODIFIER_REGEX:`(${X}${E}+(-${E}+)*)`},nested:{ATTRIBUTE_REGEX:t,CLASS_REGEX:e,ELEMENT_REGEX:o,MODIFIER_REGEX:X},child:{ATTRIBUTE_REGEX:`${t} &`,CLASS_REGEX:`${e} &`}};export{g as EMAIL_REGEX,w as FONT_FILE_NAME_REGEX,$ as ITALIC_REGEX,i as LETTERS_WITH_SPACES_REGEX,L as NOT_SEPARATE_REGEX,N as NOT_SPACE_REGEX,a as VARIABLE_FONT_REGEX,O as extensions,A as numbers,x as phones,l as selectors};
|