Skip to content

Commit 128f3f2

Browse files
authored
feat(regex): add scaleway access key regex (#1253)
1 parent 8b0fc47 commit 128f3f2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/regex-20230322.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scaleway/regex': feat
3+
---
4+
5+
Add regex for Scaleway access key.

packages/regex/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ export const ipv6Cidr = new RegExp(`^${cidrv6}$`)
7878
export const reverseDNS = /^[a-z0-9-]+(\.[a-z0-9-]{1,63})+(\.)$/
7979
export const dashedIpv4 =
8080
/(\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}/
81+
82+
export const accessKeyRegex = /^SCW[A-Z0-9]{17}$/i

0 commit comments

Comments
 (0)