summaryrefslogtreecommitdiff
path: root/src/validators/numeric-exclude
diff options
context:
space:
mode:
Diffstat (limited to 'src/validators/numeric-exclude')
-rw-r--r--src/validators/numeric-exclude8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/validators/numeric-exclude b/src/validators/numeric-exclude
new file mode 100644
index 0000000..676a240
--- /dev/null
+++ b/src/validators/numeric-exclude
@@ -0,0 +1,8 @@
+#!/bin/sh
+path=$(dirname "$0")
+num="${@: -1}"
+if [ "${num:0:1}" != "!" ]; then
+ ${path}/numeric $@
+else
+ ${path}/numeric ${@:1:$#-1} ${num:1}
+fi