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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-runner",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "フェーズ駆動で設計先行を強制。npx で .spec-runner を展開し、次のステップ .md に従って進める",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -108,7 +108,8 @@ DOC_TITLE=$(echo "$DOC_TITLE" | sed 's/[\\\\\\/\\:\\*\\?\\\"\\<\\>\\|]/ /g' | se
108
108
 
109
109
  # カテゴリ(省略時はデフォルト)。日本語カテゴリは許可し、危険文字だけ除去。
110
110
  CATEGORY="${CATEGORY:-ユースケース}"
111
- CATEGORY=$(echo "$CATEGORY" | sed 's/[^a-zA-Z0-9_ーぁ-んァ-ン一-龥\-]//g')
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