mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 01:03:46 +01:00
Make is_identifier pattern locale-independent
This commit is contained in:
parent
005be9fbf5
commit
a17981879d
2
text.lua
2
text.lua
@ -183,7 +183,7 @@ function is_keyword(text)
|
||||
end
|
||||
|
||||
function is_identifier(text)
|
||||
return (not keywords[text]) and text:match"^[%a_][%a%d_]*$"
|
||||
return (not keywords[text]) and text:match"^[A-Za-z_][A-Za-z%d_]*$"
|
||||
end
|
||||
|
||||
-- Export environment
|
||||
|
Loading…
Reference in New Issue
Block a user