Added main menu
This commit is contained in:
parent
18b2a3491c
commit
1be1826ddb
8 changed files with 758 additions and 0 deletions
12
EmojiValidator.gd
Normal file
12
EmojiValidator.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
extends LineEdit
|
||||
|
||||
@export var pattern = ""
|
||||
@onready var regex = RegEx.create_from_string(pattern)
|
||||
|
||||
func check(tet):
|
||||
if len(text) > 1:
|
||||
text = text[0]
|
||||
print("Checking!")
|
||||
print(regex.search(text))
|
||||
if regex.search(text) == null:
|
||||
text = ""
|
Loading…
Add table
Add a link
Reference in a new issue