Skip to content

Commit

Permalink
Merge pull request jumpserver#4384 from jumpserver/pr@v3@fix_special_…
Browse files Browse the repository at this point in the history
…chara

fixed: Fixed + and - not being special characters
  • Loading branch information
ZhaoJiSen authored Oct 9, 2024
2 parents 352ac7e + f140f2f commit 290772f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/FormFields/UserPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
patterns.push([/\d/, i18n.t('common.password.NUMBER_REQUIRED')])
}
if (passwordRule['SECURITY_PASSWORD_SPECIAL_CHAR']) {
const pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]")
const pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?_+-]")
patterns.push([pattern, i18n.t('common.password.SPECIAL_CHAR_REQUIRED')])
}
for (const [pattern, msg] of patterns) {
Expand Down

0 comments on commit 290772f

Please sign in to comment.