From 67623f15db4c3351b9d9097031ddf1429753c857 Mon Sep 17 00:00:00 2001 From: alex1704 Date: Tue, 3 Sep 2019 00:31:25 +0300 Subject: [PATCH] Improve filename regex - recognize filenames with multiple dots in it. --- linkfinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkfinder.py b/linkfinder.py index dc5e5fc..7baeb1e 100755 --- a/linkfinder.py +++ b/linkfinder.py @@ -50,7 +50,7 @@ | - ([a-zA-Z0-9_\-]{1,} # filename + ([a-zA-Z0-9_\-.]{1,} # filename \.(?:php|asp|aspx|jsp|json| action|html|js|txt|xml) # . + extension (?:\?[^"|']{0,}|)) # ? mark with parameters