Skip to content

Commit

Permalink
fix: password regex input default message [WTEL-4784, WTEL-4785, WTEL…
Browse files Browse the repository at this point in the history
…-4786]
  • Loading branch information
dlohvinov committed Jul 22, 2024
1 parent cb54edb commit 92f569f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/utils/user-password-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const isNew = computed(() => {
const v$ = useVuelidate(
computed(() => {
const vRegexRule = (v) => (vRegex.value ? vRegex.value.test(v) : false);
const regexpInstance = new RegExp(vRegex.value);
const vRegexRule = (v) => (vRegex.value ? regexpInstance.test(v) : false);
const regex = helpers.withParams(
{ regex: vRegex.value },
Expand Down Expand Up @@ -78,7 +79,7 @@ const loadV = async () => {
({ name }) => name === EngineSystemSettingName.PasswordValidationText,
)?.value;
vRegex.value = new RegExp(regex);
vRegex.value = regex;
vErrorText.value = errorText;
};
Expand Down

0 comments on commit 92f569f

Please sign in to comment.