n20-common-lib 2.6.8 → 2.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.6.8",
3
+ "version": "2.6.9",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -116,4 +116,4 @@
116
116
  "last 2 versions",
117
117
  "not dead"
118
118
  ]
119
- }
119
+ }
@@ -97,18 +97,24 @@ export default {
97
97
  this.pwdMin = minLength
98
98
  this.pwdMax = maxLength
99
99
  switch (passwordStrength) {
100
- case '0':
100
+ case '1':
101
101
  this.pwdRE = [/[A-z0-9]+/]
102
102
  this.pwdReMsg = $lc(`密码只能为字母数字`)
103
103
  break
104
- case '1':
104
+ case '2':
105
105
  this.pwdRE = [/[A-z]+/, /[0-9]+/]
106
106
  this.pwdReMsg = $lc(`密码只能包含数字 + 字母`)
107
107
  break
108
- case '2':
108
+ case '3':
109
109
  this.pwdRE = [/[A-Z]+/, /[a-z]+/, /[0-9]+/]
110
110
  this.pwdReMsg = $lc(`密码只能包含数字 + 大写字母 + 小写字母`)
111
111
  break
112
+ case '4':
113
+ this.pwdRE = [
114
+ /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?])[A-Za-z\d!#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{8,}$/
115
+ ]
116
+ this.pwdReMsg = $lc(`密码只能包含数字 + 大写字母 + 小写字母 + 特殊符号`)
117
+ break
112
118
  }
113
119
  })
114
120
  },
package/src/i18n.json CHANGED
@@ -1235,6 +1235,9 @@
1235
1235
  "密码只能包含数字 + 大写字母 + 小写字母": {
1236
1236
  "en": "Passwords can only contain numeric uppercase lowercase letters"
1237
1237
  },
1238
+ "密码只能包含数字 + 大写字母 + 小写字母 + 特殊符号": {
1239
+ "en": "Passwords can only contain numeric uppercase lowercase letters and special symbols"
1240
+ },
1238
1241
  "关闭其他": {
1239
1242
  "en": "Close others"
1240
1243
  },
package/src/index.js CHANGED
@@ -104,6 +104,7 @@ import watermark from './directives/watermark/index.js'
104
104
  import dayjs from 'dayjs'
105
105
  import _numerify from 'numerify'
106
106
  import getJsonc from './assets/getJsonc.js'
107
+ import realUrl from './assets/realUrl.js'
107
108
  import { has as isHas, hasG as isHasG } from './directives/VHas/index.js'
108
109
  import asyncGetRelaNos from './utils/asyncGetRelaNos.js'
109
110
  import auth from './utils/auth.js'
@@ -351,6 +352,7 @@ export {
351
352
  list2tree,
352
353
  numerify,
353
354
  operatingStatus,
355
+ realUrl,
354
356
  refreshTab,
355
357
  repairEl,
356
358
  // 页签/路由