Skip to content

Commit

Permalink
Delint script also catches back quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Poobslag committed Jul 4, 2021
1 parent a4109f1 commit bd88d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ fi
git diff master | grep print\(

# non-ascii characters in chat files
grep -R -n "[…’”]" --include="*.chat" project/assets
grep -R -n "[…’”]" --include="*.chat" project/assets
if [ "$CLEAN" ]
then
# replace non-ascii characters with ascii replacements
find project/assets -name "*.chat" -exec sed -i "s/[…]/.../g" {} +
find project/assets -name "*.chat" -exec sed -i "s/[’]/\'/g" {} +
find project/assets -name "*.chat" -exec sed -i "s/[”]/\"/g" {} +
find project/assets -name "*.chat" -exec sed -i "s/[”]/\"/g" {} +
fi

0 comments on commit bd88d90

Please sign in to comment.