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 Nov 15, 2020
1 parent 259044a commit ecbc7d5
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 @@ -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):
Expand Down

0 comments on commit ecbc7d5

Please sign in to comment.