From 25a32dedb7f4f9c173d2bc00a76692d5889b5c69 Mon Sep 17 00:00:00 2001 From: Deepthi Venkitaramanan Date: Thu, 3 Mar 2016 18:31:10 +0100 Subject: [PATCH] Issue #854 - Regex validation for atleast one character in a URL --- webcompat/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcompat/helpers.py b/webcompat/helpers.py index 3b754e30b..e9f1f0140 100644 --- a/webcompat/helpers.py +++ b/webcompat/helpers.py @@ -369,7 +369,7 @@ def extract_url(issue_body): URL in webcompat.com bugs follow this pattern: **URL**: https://example.com/foobar ''' - url_pattern = re.compile('\*\*URL\*\*\: (.*)\n') + url_pattern = re.compile('\*\*URL\*\*\: (.+)\n') url_match = re.search(url_pattern, issue_body) if url_match: url = url_match.group(1).strip()