spec-runner 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -108,7 +108,8 @@ DOC_TITLE=$(echo "$DOC_TITLE" | sed 's/[\\\\\\/\\:\\*\\?\\\"\\<\\>\\|]/ /g' | se
|
|
|
108
108
|
|
|
109
109
|
# カテゴリ(省略時はデフォルト)。日本語カテゴリは許可し、危険文字だけ除去。
|
|
110
110
|
CATEGORY="${CATEGORY:-ユースケース}"
|
|
111
|
-
|
|
111
|
+
# 文字レンジ指定は sed 実装差で壊れやすいため、危険文字のみを除去する。
|
|
112
|
+
CATEGORY=$(echo "$CATEGORY" | sed 's/[\\\/:\*\?"<>|]//g' | sed 's/[[:cntrl:]]//g' | sed 's/[[:space:]]\+/ /g' | sed 's/^ *//; s/ *$//')
|
|
112
113
|
[[ -z "$CATEGORY" ]] && CATEGORY="ユースケース"
|
|
113
114
|
|
|
114
115
|
if git rev-parse --verify "$BRANCH_NAME" >/dev/null 2>&1; then
|