Skip to content

Commit

Permalink
한글까지 _로 바뀌는 것을 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenPearls authored Aug 28, 2024
1 parent fdae717 commit 9b3b621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Rename and Commit Markdown Files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
title=$(grep -m 1 '^#' "$file" | sed 's/^# //')
if [ -n "$title" ]; then
# 공백은 유지하면서 특수 문자만 언더스코어로 변환
sanitized_title=$(echo "$title" | sed 's/[^a-zA-Z0-9 ]/_/g')
# 공백과 한글을 유지하면서 특수 문자만 언더스코어로 변환
sanitized_title=$(echo "$title" | sed 's/[^[:alnum:]ㄱ-ㅎㅏ-ㅣ가-힣 ]/_/g')
new_filename="$dir/$sanitized_title.md"
# 파일 이름이 동일한 경우에도 강제로 업데이트
Expand Down

0 comments on commit 9b3b621

Please sign in to comment.