mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +01:00
Updates via shellscript
This commit is contained in:
parent
6b4feaec42
commit
05de582917
8
init.lua
8
init.lua
@ -412,6 +412,14 @@ string_ext={
|
||||
|
||||
is_hexadecimal=function(byte)
|
||||
return (byte >= string_ext.zero and byte <= string_ext.nine) or (byte >= string_ext.letter_a and byte <= string_ext.letter_f)
|
||||
end,
|
||||
|
||||
magic_chars={"(", ")", "." "%", "+", "-", "*", "?", "[", "^", "$"},
|
||||
|
||||
escape_magic_chars=function(text)
|
||||
for _, magic_char in pairs(string_ext.magic_chars) do
|
||||
text=string.gsub(string, "%"..magic_char,"%"..magic_char)
|
||||
end
|
||||
end
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user