mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +01:00
Updates via shellscript
This commit is contained in:
parent
05de582917
commit
0c78d1bcd9
5
init.lua
5
init.lua
@ -414,12 +414,13 @@ string_ext={
|
||||
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={"(", ")", "." "%", "+", "-", "*", "?", "[", "^", "$"},
|
||||
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)
|
||||
text=string.gsub(text, "%"..magic_char,"%"..magic_char)
|
||||
end
|
||||
return text
|
||||
end
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user