Commit b957a761 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix URL regex

parent c2db52ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ from urllib.parse import urljoin
from .behave import register_pattern


@register_pattern(r"(?:https?://|/)\S+")
@register_pattern(r"(?:https?://\S+|/\S*)")
class URL(str):
	"""
	A subclass for URL strings which also acts as a pattern match type