commit a031d1cbf7074123a05e1cbeb2dfcc0986b883cc
parent ba67435ca0b0dd0a6874262125c4d5964c99f8ff
Author: Ian Jones <ian@contractcoder.biz>
Date: Mon, 24 Jan 2022 22:50:34 +0000
Tightened up regex as per quinq's suggestion
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/plumber b/bin/plumber
@@ -35,7 +35,7 @@ plumbrules = [
["^http://sprunge.us/.*", "textwebopener '%s'"],
["^http://ix.io/.*", "textwebopener '%s'"],
["^http(|s)://(|www\.)youtube.com/(watch|embed).*", "ytopener '%s'"],
- ["^http(|s)://(|www\.)youtu.be/.*\?t=.*", "ytopener '%s'"],
+ ["^http(|s)://(|www\.)youtu.be/[\w\-]{10,}\?t=\d+", "ytopener '%s'"],
["^http(|s)://(|www\.)yewtu.be/(watch|embed).*", "ytopener '%s'"],
["^http(|s)://.*", "webopener '%s'"],
["^mailto:.*", "mailcomposer '%s'"],