mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
added aabb as an acronym for camelCase
This commit is contained in:
parent
f835dd6e66
commit
1a40c1ef27
2
init.lua
2
init.lua
@ -95,7 +95,7 @@ function _batteries:camelCase()
|
|||||||
end
|
end
|
||||||
|
|
||||||
--any acronyms to fully capitalise to avoid "Rgb" and the like
|
--any acronyms to fully capitalise to avoid "Rgb" and the like
|
||||||
local acronyms = _batteries.set{"rgb", "rgba", "argb", "hsl", "xy", "gc",}
|
local acronyms = _batteries.set{"rgb", "rgba", "argb", "hsl", "xy", "gc", "aabb",}
|
||||||
local function caps_acronym(s)
|
local function caps_acronym(s)
|
||||||
if acronyms:has(s) then
|
if acronyms:has(s) then
|
||||||
s = s:upper()
|
s = s:upper()
|
||||||
|
Loading…
Reference in New Issue
Block a user