mirror of
https://github.com/ru-de/faq.git
synced 2024-11-26 04:12:18 +00:00
Merge pull request #61 from ewgRa/spell-checker-improvements
case insensitive dictionary
This commit is contained in:
commit
265ed653a6
@ -15,7 +15,7 @@ git diff HEAD^ --name-status | grep "^D" -v | sed 's/^.\t//g' > changed_files
|
|||||||
|
|
||||||
while read FILE; do
|
while read FILE; do
|
||||||
echo -n "Проверка файла $FILE на опечатки... ";
|
echo -n "Проверка файла $FILE на опечатки... ";
|
||||||
OUTPUT=$(cat "$FILE" | sed "s/$DICT_REGEXP//g" | sed 's/https\?:[^ ]*//g' | sed "s/[(][^)]*\.md[)]//g" | hunspell -d russian-aot,ru_RU,de_DE,en_US | $DIR/spell-checker);
|
OUTPUT=$(cat "$FILE" | sed "s/$DICT_REGEXP//gi" | sed 's/https\?:[^ ]*//g' | sed "s/[(][^)]*\.md[)]//g" | hunspell -d russian-aot,ru_RU,de_DE,en_US | $DIR/spell-checker);
|
||||||
OUTPUT_EXIT_CODE=$?
|
OUTPUT_EXIT_CODE=$?
|
||||||
|
|
||||||
if [ $OUTPUT_EXIT_CODE -ne 0 ]; then
|
if [ $OUTPUT_EXIT_CODE -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user