Skip to content

Commit

Permalink
Move regex attribution to code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
formatc1702 committed Oct 30, 2020
1 parent 66ad7f7 commit 23ec5c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wireviz/wv_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,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):
Expand Down

0 comments on commit 23ec5c7

Please sign in to comment.