Skip to content

Commit

Permalink
Clean whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kierdavis committed Mar 6, 2021
1 parent f43965b commit 2fb3b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ if CanICraftThis == nil then CanICraftThis = {} end
CanICraftThis.addonName = "CanICraftThis"
CanICraftThis.savedVarsName = CanICraftThis.addonName .. "Vars"


function CanICraftThis.reportInfo(message)
d("[" .. CanICraftThis.addonName .. "] " .. message)
end

function CanICraftThis.reportUnexpected(message)
error("Unexpected situation!\n" .. message .. "\nThis typically indicates a bug in the " .. CanICraftThis.addonName .. " add-on.")
end

function CanICraftThis.assert(condition, conditionString)
if not condition then
CanICraftThis.reportUnexpected("Assertion failed: " .. conditionString)
end
end


function CanICraftThis.literalPattern(text)
return string.gsub(string.lower(text), "([^a-zA-Z0-9 ])", "%%%1")
end

0 comments on commit 2fb3b14

Please sign in to comment.