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.
1 parent d9c4d8c commit abeb1e8Copy full SHA for abeb1e8
scripts/bash/create-new-feature.sh
@@ -9,7 +9,7 @@ while [[ $# -gt 0 ]]; do
9
case "$1" in
10
--json) JSON_MODE=true; shift ;;
11
--feature-num)
12
- if [[ -z "$2" || "$2" =~ ^- ]]; then
+ if [[ -z "$2" || "$2" == -* ]]; then
13
echo "Error: --feature-num requires a number (1-999)" >&2
14
exit 1
15
fi
0 commit comments