@scaleway/regex 4.1.0 → 4.2.1
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 +12 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1680](https://github.com/scaleway/scaleway-lib/pull/1680) [`c2fa21f`](https://github.com/scaleway/scaleway-lib/commit/c2fa21ffc7fe5d15a1f6cd24523d129ec1c445db) Thanks [@philibea](https://github.com/philibea)! - Update pathSegment regex
|
|
8
|
+
|
|
9
|
+
## 4.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#1605](https://github.com/scaleway/scaleway-lib/pull/1605) [`b7030c8`](https://github.com/scaleway/scaleway-lib/commit/b7030c8fdc14995f0fe66f1dcfd4fc538a82e14f) Thanks [@DorianMaliszewski](https://github.com/DorianMaliszewski)! - fix: absolute path is more permissive
|
|
14
|
+
|
|
3
15
|
## 4.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ const ipv4Cidr = new RegExp(`^${cidrv4}$`);
|
|
|
59
59
|
const ipv6Cidr = new RegExp(`^${cidrv6}$`);
|
|
60
60
|
const reverseDNS = /^[a-z0-9-]+(\.[a-z0-9-]{1,63})+(\.)$/;
|
|
61
61
|
const dashedIpv4 = /(\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(-(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}/;
|
|
62
|
-
const pathSegment = /^[_a-zA-Z0-9][-_.a-zA-Z0-9]*[_a-zA-Z0-9]
|
|
63
|
-
const absolutePath = /^\/([
|
|
62
|
+
const pathSegment = /^[_a-zA-Z0-9]([-_.a-zA-Z0-9]*[_a-zA-Z0-9])?$/;
|
|
63
|
+
const absolutePath = /^\/(([\w. -]*)[^\s?]\/?)+$/;
|
|
64
64
|
|
|
65
65
|
export { absoluteLinuxPath, absolutePath, accessKeyRegex, advancedDomainName, alpha, alphaDashes, alphaLowercase, alphanum, alphanumDash, alphanumDashDots, alphanumDashDotsOrEmpty, alphanumDashDotsSpaces, alphanumDashLowercase, alphanumDashOrEmpty, alphanumDashSpaces, alphanumDashUnderscore, alphanumDashUnderscoreDollar, alphanumDashUnderscoreDots, alphanumDashUnderscoreDotsSpaces, alphanumDashUnderscoreDotsSpacesParenthesis, alphanumDots, alphanumLowercase, ascii, backupKey, basicDomain, cron, dashedIpv4, digits, email, fourDigitsCode, hexadecimal, ip, ipCidr, ipv4, ipv4Cidr, ipv6, ipv6Cidr, macAddress, pathSegment, phone, reverseDNS, s3BucketName, sixDigitsCode, spaces, uppercaseBasicDomain, uppercaseBasicSubdomain, url };
|