summaryrefslogtreecommitdiffstats
path: root/lib/format.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format.lua')
-rw-r--r--lib/format.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/format.lua b/lib/format.lua
index dff5019..9c21395 100644
--- a/lib/format.lua
+++ b/lib/format.lua
@@ -31,6 +31,7 @@ end
return lines
end
+--string format function to cap the beginging of each word.
function cap_begin_word ( a )
--first need to do the first word
local data = string.gsub(a, "^%l", string.upper)