mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Add utf8.charpattern
This commit is contained in:
parent
cd234548e5
commit
ef2f1020c7
3
utf8.lua
3
utf8.lua
@ -42,4 +42,7 @@ function utf8.char(...)
|
||||
return table_concat(chars)
|
||||
end
|
||||
|
||||
-- Overly permissive pattern that greedily matches a single UTF-8 codepoint
|
||||
utf8.charpattern = "[%z-\127\194-\253][\128-\191]*"
|
||||
|
||||
return utf8
|
Loading…
Reference in New Issue
Block a user