View source for Module:Common
From Halopedia, the Halo wiki
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
local checkTypeMulti = libraryUtil.checkTypeMulti
local p = {}
--- Escape pattern for regex
--- @param s string string to escape
--- @return string
local function escapePattern(s)
return s:gsub("%W", "%%%1")
end
--- Check if table contains value, return key if match
---
--- @param t table - Table to search
--- @param val any - Value to match
000
1:0
Template used on this page:
Return to Module:Common.