Skip to content

Commit f0e1113

Browse files
committed
this is the way to do it
1 parent 5ff33e2 commit f0e1113

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/form/nodes/Validators/StringValidator.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ func validate(
9595
## Text to validate
9696
subject
9797
) -> bool:
98-
if !(subject is String):
99-
return
98+
subject = subject as String
10099
super.validate(subject)
101100
var _regex := RegEx.new()
102101

0 commit comments

Comments
 (0)