diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2014-01-15 22:11:19 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 23:53:18 +0000 |
commit | 3741254a6989b2837cd8d20480f152f0096bcb9a (patch) | |
tree | 5997134d4aaff3ccade061c8cce6de85cbf3ed88 /tests/filters/capitalize-buffer.lua | |
parent | 2a7dd4bf67edeff2c6c4f6d6d39d2d7f954d978a (diff) | |
download | cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar.gz cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.zip |
t0111: Additions and fixes
* Rename the capitalize-* filters to dump.* since they also dump the
arguments.
* Add full argument validation to the email filters.
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'tests/filters/capitalize-buffer.lua')
-rw-r--r-- | tests/filters/capitalize-buffer.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/filters/capitalize-buffer.lua b/tests/filters/capitalize-buffer.lua deleted file mode 100644 index 1f15c93..0000000 --- a/tests/filters/capitalize-buffer.lua +++ /dev/null @@ -1,17 +0,0 @@ -function filter_open(...) - buffer = "" - for i = 1, select("#", ...) do - buffer = buffer .. select(i, ...) .. " " - end -end - -function filter_close() - html(buffer) - return 0 -end - -function filter_write(str) - buffer = buffer .. string.upper(str) -end - - |