diff options
author | Yuchen Pei <hi@ypei.me> | 2022-05-19 22:23:10 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-05-19 22:23:10 +1000 |
commit | 3db93bc6f7b46bc322694e6658b8f559433a03c6 (patch) | |
tree | 1273a17e11e0d9888ae57676906c68f8bb77e287 /subprojects/freeamo/src/unmaintained/bad_names | |
parent | 09c05e86a1096b08eb7483b970207d47d0388665 (diff) |
Replacing the files with a haskell rewrite.
Diffstat (limited to 'subprojects/freeamo/src/unmaintained/bad_names')
-rw-r--r-- | subprojects/freeamo/src/unmaintained/bad_names | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/subprojects/freeamo/src/unmaintained/bad_names b/subprojects/freeamo/src/unmaintained/bad_names deleted file mode 100644 index d919a00..0000000 --- a/subprojects/freeamo/src/unmaintained/bad_names +++ /dev/null @@ -1,21 +0,0 @@ -function search-pages--filter__bad_names() { - -# The API `name` parameter makes bad MediaWiki URL's - 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/ $//'); - -} |