From d4f9b32d139c548321289f655c5a8c7df87607fb Mon Sep 17 00:00:00 2001 From: Alexander Jones Date: Fri, 27 Sep 2024 17:05:48 -0500 Subject: [PATCH] Flip order of value regex tests --- validator/schema/types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/schema/types.js b/validator/schema/types.js index 2efc7647..8d8ab758 100644 --- a/validator/schema/types.js +++ b/validator/schema/types.js @@ -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) } }