summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Shields <mail@kennyshields.net>2016-07-10 15:46:06 -0400
committerKenny Shields <mail@kennyshields.net>2016-07-10 15:46:06 -0400
commitfc7f09b8137525e37b3d270f2ad7b7301722360a (patch)
treed471862166284d17c47c95013869dd6248c9e412
parentce12330a9cc6eccf842a6fa26cb9cdb324c82c17 (diff)
downloadstp-fc7f09b8137525e37b3d270f2ad7b7301722360a.tar.gz
stp-fc7f09b8137525e37b3d270f2ad7b7301722360a.zip
Allow custom token pattern to be specified in configuration table
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 4492b85..6c79ccc 100644
--- a/init.lua
+++ b/init.lua
@@ -172,6 +172,9 @@ function lib.init(config)
end
end
end
+ if config.token_pattern then
+ token_pattern = config.token_pattern
+ end
for line in io.lines(config.path) do
parseLine(trim(line))
end