mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
tesseract: fix fetch-language-hashes
- Don't match spaces in language names - Remove duplicate languages
This commit is contained in:
parent
cef05334ef
commit
42b719a3be
@ -25,7 +25,7 @@ else
|
||||
>&2 echo "Invalid tessdataRev: $tessdataRev"
|
||||
exit 1
|
||||
})
|
||||
langCodes=$(echo $(echo "$repoPage" | grep -ohP "(?<=/)[^/]+?(?=\.traineddata)" | sort))
|
||||
langCodes=$(echo $(echo "$repoPage" | grep -ohP "(?<=/)[^/ ]+?(?=\.traineddata)" | sort -u))
|
||||
fi
|
||||
|
||||
for lang in $langCodes; do
|
||||
|
Loading…
Reference in New Issue
Block a user