Fixed #5816 - Invalid Prop Type For Strong and Medium Regex on Password Component
parent
f01783ea85
commit
ad15757ccb
|
@ -12,11 +12,11 @@ export default {
|
|||
default: null
|
||||
},
|
||||
mediumRegex: {
|
||||
type: String,
|
||||
type: [String, RegExp],
|
||||
default: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})' // eslint-disable-line
|
||||
},
|
||||
strongRegex: {
|
||||
type: String,
|
||||
type: [String, RegExp],
|
||||
default: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})' // eslint-disable-line
|
||||
},
|
||||
weakLabel: {
|
||||
|
|
|
@ -178,12 +178,12 @@ export interface PasswordProps extends InputHTMLAttributes {
|
|||
* Regex for a medium level password.
|
||||
* @defaultValue ^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})
|
||||
*/
|
||||
mediumRegex?: string | undefined;
|
||||
mediumRegex?: string | RegExp | undefined;
|
||||
/**
|
||||
* Regex for a strong level password.
|
||||
* @defaultValue ^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})
|
||||
*/
|
||||
strongRegex?: string | undefined;
|
||||
strongRegex?: string | RegExp | undefined;
|
||||
/**
|
||||
* Text for a weak password. Defaults to PrimeVue Locale configuration.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue