From 4db097df535402d7e7de93022f42f69e4f7a3663 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 17 Jul 2018 16:04:35 +0200 Subject: Renamed the AMO/FSD project to FreeAMO, and rewrote its architecture. --- subprojects/freeamo/src/unmaintained/bad_names~ | 31 ------------------------- 1 file changed, 31 deletions(-) delete mode 100644 subprojects/freeamo/src/unmaintained/bad_names~ (limited to 'subprojects/freeamo/src/unmaintained/bad_names~') diff --git a/subprojects/freeamo/src/unmaintained/bad_names~ b/subprojects/freeamo/src/unmaintained/bad_names~ deleted file mode 100644 index 065ca82..0000000 --- a/subprojects/freeamo/src/unmaintained/bad_names~ +++ /dev/null @@ -1,31 +0,0 @@ - - -function search-pages--filter__bad_names() { - -name=$(jq .results[$entry].name "$run_path/build/json/$file" | sed "s|en-US|enUS|;" | jq .enUS | sed "s|^\"||; s|\"$||;"); - -if [ "$name" == "null" ]; then - -name=$(jq .results[$entry].name "$run_path/build/json/$file" | sed "s|en-GB|enGB|;" | jq .enGB | sed "s|^\"||; s|\"$||;"); - -fi - -# Warn about clutter in Name - https://github.com/mozilla/addons-server/issues/8790 -# Clean titles. Example of bad titles: "Ghostery – Privacy Ad Blocker" - -# - -# Hard to filter out "-" since many add-ons use it, see for example https://addons.mozilla.org/en-US/firefox/search/?platform=linux&q=1-click -# Flash Video Downloader - YouTube HD Download [4K] - -# Find all names that don't contain Aa-Zz 0-9 and white spaces should be much more reliable than this: -name=$(echo "$name" | sed ' -s/ — /\n/g; -s/ – /\n/g; -s/ - /\n/g; # looks identical to the prevoius line but is unique -s/: /\n/g; -s/(/\n/g; -s/,/\n/g; -s/™/\n/g; -' | head -n 1 | sed 's/ $//'); - -} -- cgit v1.2.3