We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d89318 + 6ba332f commit 41e2804Copy full SHA for 41e2804
2 files changed
src/assert_line.bash
@@ -137,7 +137,7 @@ assert_line() {
137
while (( $# > 0 )); do
138
case "$1" in
139
-n|--index)
140
- if (( $# < 2 )) || ! [[ $2 =~ ^([0-9]|[1-9][0-9]+)$ ]]; then
+ if (( $# < 2 )) || ! [[ $2 =~ ^-?([0-9]|[1-9][0-9]+)$ ]]; then
141
echo "\`--index' requires an integer argument: \`$2'" \
142
| batslib_decorate 'ERROR: assert_line' \
143
| fail
src/refute_line.bash
@@ -140,7 +140,7 @@ refute_line() {
144
145
| batslib_decorate 'ERROR: refute_line' \
146
0 commit comments