@scaleway/regex 2.7.0 → 2.8.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 +6 -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,12 @@
|
|
|
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.8.0 (2022-12-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **regex:** add alphanumdashunderscoredotsparenthesis regex ([#1126](https://github.com/scaleway/scaleway-lib/issues/1126)) ([f7c0dda](https://github.com/scaleway/scaleway-lib/commit/f7c0ddab694e02d443c9c1c3fae788be4c1bd5b1))
|
|
11
|
+
|
|
6
12
|
## 2.7.0 (2022-12-14)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/dist/index.browser.js
CHANGED
|
@@ -6,6 +6,7 @@ const alphanumdash = /^[a-zA-Z0-9-]*$/;
|
|
|
6
6
|
const alphanumdashdots = /^[a-zA-Z0-9-.]*$/;
|
|
7
7
|
const alphanumdashdotsorempty = /^$|^[a-zA-Z0-9-.]*$/;
|
|
8
8
|
const alphanumdashdotsspaces = /^[a-zA-Z0-9-.\s]*$/;
|
|
9
|
+
const alphanumdashunderscoredotsspacesparenthesis = /^[a-zA-Z0-9-_.()\s]*$/;
|
|
9
10
|
const alphanumdashorempty = /^$|^[a-zA-Z0-9-]*$/;
|
|
10
11
|
const alphanumdashspaces = /^[a-zA-Z0-9-\s]*$/;
|
|
11
12
|
const alphanumdots = /^[a-zA-Z0-9.]*$/;
|
|
@@ -53,4 +54,4 @@ const ipCidr = new RegExp(`(?:^${cidrv4}$)|(?:^${cidrv6}$)`);
|
|
|
53
54
|
const ipv4Cidr = new RegExp(`^${cidrv4}$`);
|
|
54
55
|
const ipv6Cidr = new RegExp(`^${cidrv6}$`);
|
|
55
56
|
|
|
56
|
-
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
|
|
57
|
+
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare const alphanumdash: RegExp;
|
|
|
6
6
|
declare const alphanumdashdots: RegExp;
|
|
7
7
|
declare const alphanumdashdotsorempty: RegExp;
|
|
8
8
|
declare const alphanumdashdotsspaces: RegExp;
|
|
9
|
+
declare const alphanumdashunderscoredotsspacesparenthesis: RegExp;
|
|
9
10
|
declare const alphanumdashorempty: RegExp;
|
|
10
11
|
declare const alphanumdashspaces: RegExp;
|
|
11
12
|
declare const alphanumdots: RegExp;
|
|
@@ -37,4 +38,4 @@ declare const ipCidr: RegExp;
|
|
|
37
38
|
declare const ipv4Cidr: RegExp;
|
|
38
39
|
declare const ipv6Cidr: RegExp;
|
|
39
40
|
|
|
40
|
-
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
|
|
41
|
+
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const alphanumdash = /^[a-zA-Z0-9-]*$/;
|
|
|
6
6
|
const alphanumdashdots = /^[a-zA-Z0-9-.]*$/;
|
|
7
7
|
const alphanumdashdotsorempty = /^$|^[a-zA-Z0-9-.]*$/;
|
|
8
8
|
const alphanumdashdotsspaces = /^[a-zA-Z0-9-.\s]*$/;
|
|
9
|
+
const alphanumdashunderscoredotsspacesparenthesis = /^[a-zA-Z0-9-_.()\s]*$/;
|
|
9
10
|
const alphanumdashorempty = /^$|^[a-zA-Z0-9-]*$/;
|
|
10
11
|
const alphanumdashspaces = /^[a-zA-Z0-9-\s]*$/;
|
|
11
12
|
const alphanumdots = /^[a-zA-Z0-9.]*$/;
|
|
@@ -53,4 +54,4 @@ const ipCidr = new RegExp(`(?:^${cidrv4}$)|(?:^${cidrv6}$)`);
|
|
|
53
54
|
const ipv4Cidr = new RegExp(`^${cidrv4}$`);
|
|
54
55
|
const ipv6Cidr = new RegExp(`^${cidrv6}$`);
|
|
55
56
|
|
|
56
|
-
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
|
|
57
|
+
export { absoluteLinuxPath, alpha, alphaDashes, alphaLower, alphanum, alphanumLowercase, alphanumSpacesDotsUnderscoreDash, alphanumUnderscoreDash, alphanumUnderscoreDollarDash, alphanumdash, alphanumdashLowercase, alphanumdashdots, alphanumdashdotsorempty, alphanumdashdotsspaces, alphanumdashorempty, alphanumdashspaces, alphanumdashunderscoredotsspacesparenthesis, alphanumdots, ascii, backupKey, basicDomain, cron, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, phone, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, url };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/regex",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.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": "ba1af6b8b59b9829655fc20463c2ff3a74ea4dbb"
|
|
22
22
|
}
|