summaryrefslogtreecommitdiff
path: root/lualibs-string.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-06-09 02:40:55 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-06-09 02:40:55 -0700
commit32b7ab871a07f20c73187a577dedb737cc8b18fd (patch)
tree3ccabaa43445a099852e45add9fa93574fab59bb /lualibs-string.lua
parentec6ddd136a1364a5c55e611cf6098c165b383ec0 (diff)
parent40cf2319dbf8b2d6796c7941a31795cd2cb55eb3 (diff)
downloadlualibs-32b7ab871a07f20c73187a577dedb737cc8b18fd.tar.gz
Merge pull request #14 from phi-gamma/master
sync
Diffstat (limited to 'lualibs-string.lua')
-rw-r--r--lualibs-string.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualibs-string.lua b/lualibs-string.lua
index 77c076c..9b079b0 100644
--- a/lualibs-string.lua
+++ b/lualibs-string.lua
@@ -91,6 +91,8 @@ end
local pattern = P(" ")^0 * P(-1)
+-- patterns.onlyspaces = pattern
+
function string.is_empty(str)
if str == "" then
return true