Move regex attribution to code comment
This commit is contained in:
parent
259044ac84
commit
ecbc7d5b4e
@ -114,9 +114,8 @@ def isarrow(inp):
|
|||||||
Examples:
|
Examples:
|
||||||
<-, --, ->, <->
|
<-, --, ->, <->
|
||||||
<==, ==, ==>, <=>
|
<==, ==, ==>, <=>
|
||||||
|
|
||||||
regex by @shiraneyo
|
|
||||||
"""
|
"""
|
||||||
|
# regex by @shiraneyo
|
||||||
return bool(re.match(r"^\s*(?P<leftHead><?)(?P<body>-+|=+)(?P<rightHead>>?)\s*$", inp))
|
return bool(re.match(r"^\s*(?P<leftHead><?)(?P<body>-+|=+)(?P<rightHead>>?)\s*$", inp))
|
||||||
|
|
||||||
def aspect_ratio(image_src):
|
def aspect_ratio(image_src):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user