summaryrefslogtreecommitdiffstats
path: root/lib/format.lua
diff options
context:
space:
mode:
authorMike Mason <ms13sp@gmail.com>2007-12-05 21:54:10 +0000
committerMike Mason <ms13sp@gmail.com>2007-12-05 21:54:10 +0000
commit15f95a3134ed82b8e65b23fad5b71ef088061970 (patch)
tree20747171c8e87e6946b7c659023b2bfc4bbdae7d /lib/format.lua
parenta2fc97fd31df9a05c66cb3dbf4246727fff97f88 (diff)
downloadacf-core-15f95a3134ed82b8e65b23fad5b71ef088061970.tar.bz2
acf-core-15f95a3134ed82b8e65b23fad5b71ef088061970.tar.xz
Made validator functions useful after load, fixed a bug in format, changed README to reflect changes
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@413 ab2d0c66-481e-0410-8bed-d214d4d58bed
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)