Allow npr.org without www. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit ef40fc696159ece2476d0b03a1e2960e059fc126 | |
parent 29fe53e8b2cd02082d48df140be44737dcf544d4 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 17 Mar 2024 23:05:36 +0100 | |
Allow npr.org without www. | |
Diffstat: | |
M annna-message-common | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -148,7 +148,7 @@ case "${text}" in | |
nuris="$(printf "%s\n" "${uri}" \ | |
| sed 's,https://lichess.org\(/[^ ]*\)$,\1,; s,^/\([^/… | |
;; | |
- *www.npr.org/*) | |
+ *npr.org/*) | |
post="$(printf '%s\n' "${uri}" | sed -n 's@.*/\([0-9]\{10\}\)/… | |
if [ -n "${post}" ]; | |
then |