Skip to content

Commit

Permalink
fix ":" and "'" in blog title
Browse files Browse the repository at this point in the history
  • Loading branch information
notzhan committed Dec 16, 2024
1 parent 45cd791 commit ee8dea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/issue_to_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
jq -c '.[]' issues.json | while read -r issue; do
NUMBER=$(echo "$issue" | jq -r '.number')
TITLE=$(echo "$issue" | jq -r '.title')
FILENAME=$(echo "$issue" | jq -r '.title' | sed 's/[\\/:\ \"*?"<>|]/-/g; s/-\+/-/g')
FILENAME=$(echo "$issue" | jq -r '.title' | sed 's/[\\/:\ \"*?'\''<>|]/-/g; s/--*/-/g; s/^-//; s/-$//')
CREATED_AT=$(echo "$issue" | jq -r '.created_at'|date '+%Y-%m-%d %H:%M:%S' -f -)
SORTDATE=$(date -d "$CREATED_AT" +%y%m%d)
HTML_URL=$(echo "$issue" | jq -r '.html_url')
Expand Down
2 changes: 1 addition & 1 deletion build_site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ build ()

if [[ "$line" =~ itle:(.*$) ]]
then
TITLE=$(echo "$line" |sed -n 's/.itle: //p')
TITLE=$(echo "$line" |sed -n 's/.itle: //p'| sed 's/^"\(.*\)"$/\1/')
fi

if [[ "$line" =~ ate:(.*$) ]]
Expand Down

0 comments on commit ee8dea2

Please sign in to comment.