Skip to content

Commit 3ad617f

Browse files
committed
Flip order of value regex tests
1 parent b7f831c commit 3ad617f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator/schema/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ export class SchemaValueClass extends SchemaEntryWithAttributes {
701701
* @returns {boolean} Whether the value conforms to this value class.
702702
*/
703703
validateValue(value) {
704-
return this._charClassRegex.test(value) && this._wordRegex.test(value)
704+
return this._wordRegex.test(value) && this._charClassRegex.test(value)
705705
}
706706
}
707707

0 commit comments

Comments
 (0)