Move regex attribution to code comment

This commit is contained in:
Daniel Rojas 2020-10-30 08:13:29 +01:00
parent 259044ac84
commit ecbc7d5b4e

View File

@ -114,9 +114,8 @@ def isarrow(inp):
Examples:
<-, --, ->, <->
<==, ==, ==>, <=>
regex by @shiraneyo
"""
# regex by @shiraneyo
return bool(re.match(r"^\s*(?P<leftHead><?)(?P<body>-+|=+)(?P<rightHead>>?)\s*$", inp))
def aspect_ratio(image_src):