• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
local re = {}
 
local re = {}
   −
function re.regExpr(frame)
+
function re.findMatch(frame)
 
-- frame[1] = test string
 
-- frame[1] = test string
 
-- frame[2] = Lua pattern
 
-- frame[2] = Lua pattern
return string.match(frame[1], frame[2])
+
result = string.match(frame[1], frame[2])
 +
if (result == nil) then
 +
result = ""
 +
end
 +
return result
 
end
 
end
5,421

edits

Navigation menu