File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ validate_commit_message() {
476
476
477
477
# Alert if the commit message appears to be written in Chinese.
478
478
# This pattern matches any Chinese character (common CJK Unified Ideographs).
479
- MISSPELLED_WORDS=$( echo " $FULL_COMMIT_MSG " | grep " [一-龥]" )
479
+ MISSPELLED_WORDS=$( echo " $FULL_COMMIT_MSG " | LC_ALL=C grep " [一-龥]" )
480
480
if [ -n " $MISSPELLED_WORDS " ]; then
481
481
add_warning 1 " Commit message appears to be written in Chinese: $MISSPELLED_WORDS "
482
482
fi
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ RETURN=0
99
99
100
100
# Disallow non-ASCII characters in workspace path
101
101
workspace=$( git rev-parse --show-toplevel)
102
- if echo " $workspace " | grep -q " [一-龥]" ; then
102
+ if echo " $workspace " | LC_ALL=C grep -q " [一-龥]" ; then
103
103
throw " The workspace path '$workspace ' contains non-ASCII characters."
104
104
fi
105
105
You can’t perform that action at this time.
0 commit comments