Update to 5c94ec058d4fa65709d134271e52e0c8cec042b7
This commit is contained in:
parent
ce6cc756a1
commit
6f480e406d
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ func evaluate() -> bool:
|
||||||
if !success: failures.append("Data did not match a single provided value")
|
if !success: failures.append("Data did not match a single provided value")
|
||||||
CoreTypes.ValidationType.CONTAINS:
|
CoreTypes.ValidationType.CONTAINS:
|
||||||
# If not a String or StringName, skip
|
# If not a String or StringName, skip
|
||||||
if typeof(data) != Variant.Type.TYPE_STRING or typeof(data) != Variant.Type.TYPE_STRING_NAME:
|
if typeof(data) != Variant.Type.TYPE_STRING and typeof(data) != Variant.Type.TYPE_STRING_NAME:
|
||||||
logger.warn("Can't determine if data contains values as data is not of type String or StringName")
|
logger.warn("Can't determine if data contains values as data is not of type String or StringName")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ func evaluate() -> bool:
|
||||||
if successes < rule["minimum_matches"]: failures.append(core.stringify_variables("Data did matched %got% out of %expected% expected strings", { "got": successes, "expected": rule["minimum_matches"] }))
|
if successes < rule["minimum_matches"]: failures.append(core.stringify_variables("Data did matched %got% out of %expected% expected strings", { "got": successes, "expected": rule["minimum_matches"] }))
|
||||||
CoreTypes.ValidationType.MATCHES_REGEX:
|
CoreTypes.ValidationType.MATCHES_REGEX:
|
||||||
# If not a String or StringName, skip
|
# If not a String or StringName, skip
|
||||||
if typeof(data) != Variant.Type.TYPE_STRING or typeof(data) != Variant.Type.TYPE_STRING_NAME:
|
if typeof(data) != Variant.Type.TYPE_STRING and typeof(data) != Variant.Type.TYPE_STRING_NAME:
|
||||||
logger.warn("Can't determine if data matches regex as data is not of type String or StringName")
|
logger.warn("Can't determine if data matches regex as data is not of type String or StringName")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue