hcloud-sdk 21.7.1 → 21.7.2

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,5 @@
1
- ## [21.7.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v21.7.0...v21.7.1) (2026-07-08)
1
+ ## [21.7.2](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v21.7.1...v21.7.2) (2026-07-08)
2
2
 
3
3
  ### Bug Fixes
4
4
 
5
- * align sdk method to match search assets ([b87526c](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/b87526ce1d59784e69138ccf630c3ef3cd4a6e4e))
5
+ * apply regex pattern to email as well ([3461feb](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/3461feb19345b546932512e2af1e84086aa1eea0))
@@ -145,7 +145,10 @@ const entityCollection = {
145
145
  maxLength: 32,
146
146
  },
147
147
  [Entity.USER_ORGANIZATION_NAME]: {
148
- pattern: /^[\w-+@.]{3,255}$/i,
148
+ // Allows Unicode letters (incl. ß, é, …) so email-style values like staßburg@test.de are accepted, plus combining marks, numbers, underscores, plus, at, dots, and hyphens
149
+ pattern: /^[\p{L}\p{M}0-9_+@.-]{3,255}$/u,
150
+ // Set explicitly because the auto-derivation in sanitize() rebuilds the char class without the /u flag, which breaks the \p{…} Unicode property escapes
151
+ symbols: /[\p{L}\p{M}0-9_+@.-]/u,
149
152
  minLength: 3,
150
153
  maxLength: 255,
151
154
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "21.7.1",
3
+ "version": "21.7.2",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",