Skip to content

Commit

Permalink
Merge pull request #939 from deepthivenkat/Issue#854
Browse files Browse the repository at this point in the history
Fixes #854 - Regex validation for atleast one character in a URL
  • Loading branch information
Mike Taylor committed Mar 3, 2016
2 parents 27bd3ae + 25a32de commit 99df1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcompat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 99df1c2

Please sign in to comment.