Skip to content

Commit

Permalink
Flip order of value regex tests
Browse files Browse the repository at this point in the history
  • Loading branch information
happy5214 committed Sep 27, 2024
1 parent 700ec6d commit d4f9b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/schema/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ export class SchemaValueClass extends SchemaEntryWithAttributes {
* @returns {boolean} Whether the value conforms to this value class.
*/
validateValue(value) {
return this._charClassRegex.test(value) && this._wordRegex.test(value)
return this._wordRegex.test(value) && this._charClassRegex.test(value)
}
}

Expand Down

0 comments on commit d4f9b32

Please sign in to comment.