@scaleway/regex 5.3.0 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 5.3.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -49,3 +49,4 @@ export declare const dashedIpv4: RegExp;
49
49
  export declare const pathSegment: RegExp;
50
50
  export declare const absolutePath: RegExp;
51
51
  export declare const sgPortRange: RegExp;
52
+ export declare const password: RegExp;
package/dist/index.js CHANGED
@@ -65,6 +65,7 @@ const dashedIpv4 = /(\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(-(25[0-5]|2[0-4
65
65
  const pathSegment = /^[_a-zA-Z0-9]([-_.a-zA-Z0-9]*[_a-zA-Z0-9])?$/;
66
66
  const absolutePath = /^\/(([\w. -]*)[^\s?]\/?)+$/;
67
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 = /^(?!@)[^`]*$/;
68
69
  export {
69
70
  absoluteLinuxPath,
70
71
  absolutePath,
@@ -107,6 +108,7 @@ export {
107
108
  ipv6Cidr,
108
109
  macAddress,
109
110
  nineDigitsCode,
111
+ password,
110
112
  pathSegment,
111
113
  phone,
112
114
  reverseDNS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/regex",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "A small utility to use regex",
5
5
  "type": "module",
6
6
  "engines": {