commit 504e8466f20d6d6e40b2e82c32676370c170fefa
parent 4a7b7d0a3368abf2e84065db5fd3945a1834cbd1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 27 Nov 2020 08:50:12 +0100
search: accept RFC specs with one or more digits
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/search b/.local/bin/search
@@ -64,7 +64,7 @@ elif regeximatch "$c" '!map'; then
elif regeximatch "$c" '!wiki'; then
plumb "https://en.wikipedia.org/wiki/Special:Search?search=$(printf '%s' "$c" | sed 's/ *!wiki *//')"
-elif regeximatch "$c" '^rfc[0-9][0-9][0-9][0-9]$'; then
+elif regeximatch "$c" '^rfc[0-9][0-9]*$'; then
plumb "ftp://ftp.rfc-editor.org/in-notes/${c}.txt"
elif regeximatch "$c" '!yt'; then