@scaleway/regex 2.2.3 → 2.3.0
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/CHANGELOG.md +9 -0
- package/dist/index.browser.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 2.3.0 (2022-08-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add new regex `alphaDashes` to the list ([#901](https://github.com/scaleway/scaleway-lib/issues/901)) ([608f823](https://github.com/scaleway/scaleway-lib/commit/608f8230badb68dcbcb5eab95c1661f97652a042))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
### 2.2.3 (2022-04-26)
|
|
7
16
|
|
|
8
17
|
|
package/dist/index.browser.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const alpha = /^[a-zA-Z]*$/;
|
|
2
2
|
const alphaLower = /^[a-z]+$/;
|
|
3
3
|
const alphanum = /^[a-zA-Z0-9]*$/;
|
|
4
|
+
const alphaDashes = /^[a-zA-Z-]*$/;
|
|
4
5
|
const alphanumdash = /^[a-zA-Z0-9-]*$/;
|
|
5
6
|
const alphanumdashdots = /^[a-zA-Z0-9-.]*$/;
|
|
6
7
|
const alphanumdashdotsorempty = /^$|^[a-zA-Z0-9-.]*$/;
|
|
@@ -27,4 +28,4 @@ const sixDigitsCode = /^[0-9]{6}$/;
|
|
|
27
28
|
const url = /^http(s)?:\/\/?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=.]+$/;
|
|
28
29
|
const hexadecimal = /^[0-9a-fA-F]+$/;
|
|
29
30
|
|
|
30
|
-
export { absoluteLinuxPath, alpha, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, macAddress, phone, sixDigitsCode, spaces, url };
|
|
31
|
+
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, macAddress, phone, sixDigitsCode, spaces, url };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const alpha: RegExp;
|
|
2
2
|
declare const alphaLower: RegExp;
|
|
3
3
|
declare const alphanum: RegExp;
|
|
4
|
+
declare const alphaDashes: RegExp;
|
|
4
5
|
declare const alphanumdash: RegExp;
|
|
5
6
|
declare const alphanumdashdots: RegExp;
|
|
6
7
|
declare const alphanumdashdotsorempty: RegExp;
|
|
@@ -27,4 +28,4 @@ declare const sixDigitsCode: RegExp;
|
|
|
27
28
|
declare const url: RegExp;
|
|
28
29
|
declare const hexadecimal: RegExp;
|
|
29
30
|
|
|
30
|
-
export { absoluteLinuxPath, alpha, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, macAddress, phone, sixDigitsCode, spaces, url };
|
|
31
|
+
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, macAddress, phone, sixDigitsCode, spaces, url };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const alpha = /^[a-zA-Z]*$/;
|
|
2
2
|
const alphaLower = /^[a-z]+$/;
|
|
3
3
|
const alphanum = /^[a-zA-Z0-9]*$/;
|
|
4
|
+
const alphaDashes = /^[a-zA-Z-]*$/;
|
|
4
5
|
const alphanumdash = /^[a-zA-Z0-9-]*$/;
|
|
5
6
|
const alphanumdashdots = /^[a-zA-Z0-9-.]*$/;
|
|
6
7
|
const alphanumdashdotsorempty = /^$|^[a-zA-Z0-9-.]*$/;
|
|
@@ -27,4 +28,4 @@ const sixDigitsCode = /^[0-9]{6}$/;
|
|
|
27
28
|
const url = /^http(s)?:\/\/?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=.]+$/;
|
|
28
29
|
const hexadecimal = /^[0-9a-fA-F]+$/;
|
|
29
30
|
|
|
30
|
-
export { absoluteLinuxPath, alpha, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, macAddress, phone, sixDigitsCode, spaces, url };
|
|
31
|
+
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, macAddress, phone, sixDigitsCode, spaces, url };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/regex",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "A small utility to use regex",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"directory": "packages/regex"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "0cf4c720d4d8470ec8e2a950d14dc8acdb1a3426"
|
|
22
22
|
}
|