This commit is contained in:
Manuel Simon Hirsig
2016-03-03 21:36:40 +01:00
parent 1010bdebab
commit a0ff5136ab
2 changed files with 193 additions and 97 deletions
+1
View File
@@ -62,6 +62,7 @@ function m.to_string(money, pad, trim, decimal_points, color, no_color)
end
function m.from_string(value)
value = strlower(value)
-- remove any colors
value = gsub(gsub(value, '\124c([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])', ''), '\124r', '')