@scaleway/regex 5.2.2 → 5.3.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 +14 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2533](https://github.com/scaleway/scaleway-lib/pull/2533) [`8b076aa`](https://github.com/scaleway/scaleway-lib/commit/8b076aa0e1b603401b680c0282b0cc9248c6fe30) Thanks [@MathildeJolly](https://github.com/MathildeJolly)! - feat(regex): add regex for password
|
|
8
|
+
|
|
9
|
+
- [#2536](https://github.com/scaleway/scaleway-lib/pull/2536) [`91acf46`](https://github.com/scaleway/scaleway-lib/commit/91acf4694a876ef816f1e078320dfa966b8a031f) Thanks [@MathildeJolly](https://github.com/MathildeJolly)! - fix(regex): exclude @ as first letter for password regex
|
|
10
|
+
|
|
11
|
+
## 5.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#2514](https://github.com/scaleway/scaleway-lib/pull/2514) [`69dc566`](https://github.com/scaleway/scaleway-lib/commit/69dc566a431ebb9e8d2e8cd4c58508f9a9409b03) Thanks [@alexandre-combemorel](https://github.com/alexandre-combemorel)! - Add new regex for port security group handling
|
|
16
|
+
|
|
3
17
|
## 5.2.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -64,6 +64,8 @@ const reverseDNS = /^[a-z0-9-]+(\.[a-z0-9-]{1,63})+(\.)$/;
|
|
|
64
64
|
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}/;
|
|
65
65
|
const pathSegment = /^[_a-zA-Z0-9]([-_.a-zA-Z0-9]*[_a-zA-Z0-9])?$/;
|
|
66
66
|
const absolutePath = /^\/(([\w. -]*)[^\s?]\/?)+$/;
|
|
67
|
+
const sgPortRange = /^(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5]?[0-9]{1,4})(-(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5]?[0-9]{1,4}))?$/;
|
|
68
|
+
const password = /^(?!@)[^`]*$/;
|
|
67
69
|
export {
|
|
68
70
|
absoluteLinuxPath,
|
|
69
71
|
absolutePath,
|
|
@@ -106,10 +108,12 @@ export {
|
|
|
106
108
|
ipv6Cidr,
|
|
107
109
|
macAddress,
|
|
108
110
|
nineDigitsCode,
|
|
111
|
+
password,
|
|
109
112
|
pathSegment,
|
|
110
113
|
phone,
|
|
111
114
|
reverseDNS,
|
|
112
115
|
s3BucketName,
|
|
116
|
+
sgPortRange,
|
|
113
117
|
sixDigitsCode,
|
|
114
118
|
spaces,
|
|
115
119
|
uppercaseBasicDomain,
|