Added main menu real

This commit is contained in:
ultrablob 2024-04-17 18:35:16 -04:00
parent 1be1826ddb
commit a4ef10302e
4 changed files with 35 additions and 11 deletions

View file

@ -4,9 +4,14 @@ extends LineEdit
@onready var regex = RegEx.create_from_string(pattern)
func check(tet):
if len(text) > 1:
text = text[0]
if text == "":
return
print("Checking!")
print(regex.search(text))
if regex.search(text) == null:
text = ""
print(text[0].unicode_at(0))
if OS.get_name() == "Web":
if text[0].unicode_at(0) < 100_000:
text = ""
else:
print(regex.search(text))
if regex.search(text) == null:
text = ""