@vocollege/app 0.0.175 → 0.0.176

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.
@@ -121,7 +121,7 @@ exports.regexPatterns = {
121
121
  username: /(^[a-z]{3,})([\.]|[\_]|[\-]|[a-z]|[0-9]?)+$/,
122
122
  email: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
123
123
  stringNonDigit: /^[^0-9]+$/,
124
- password: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/, // At least 8 characters, 1 uppercase, 1 lowercase and 1 digit.
124
+ password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&_-])[A-Za-z\d@$!%*?&_-]{12,}$/, // At least 12 characters, 1 uppercase, 1 lowercase, 1 digit and 1 special symbol.
125
125
  cleanName: /(^[a-z]{1,})(\w|-?)+$/,
126
126
  personalNumber: /^(\d{8})[-]\d{4}$/,
127
127
  orgnr: /^(\d{6})[-]\d{4}$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.175",
3
+ "version": "0.0.176",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -63,7 +63,7 @@ export const regexPatterns = {
63
63
  username: /(^[a-z]{3,})([\.]|[\_]|[\-]|[a-z]|[0-9]?)+$/,
64
64
  email: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
65
65
  stringNonDigit: /^[^0-9]+$/,
66
- password: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/, // At least 8 characters, 1 uppercase, 1 lowercase and 1 digit.
66
+ password: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&_-])[A-Za-z\d@$!%*?&_-]{12,}$/, // At least 12 characters, 1 uppercase, 1 lowercase, 1 digit and 1 special symbol.
67
67
  cleanName: /(^[a-z]{1,})(\w|-?)+$/,
68
68
  personalNumber: /^(\d{8})[-]\d{4}$/,
69
69
  orgnr: /^(\d{6})[-]\d{4}$/,