From 23ec5c76b9aedc0a81325b0d457fae5885ae0792 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Fri, 30 Oct 2020 08:13:29 +0100 Subject: [PATCH] Move regex attribution to code comment --- src/wireviz/wv_helper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wireviz/wv_helper.py b/src/wireviz/wv_helper.py index 479f32b0..aa5c67d4 100644 --- a/src/wireviz/wv_helper.py +++ b/src/wireviz/wv_helper.py @@ -173,9 +173,8 @@ def isarrow(inp): Examples: <-, --, ->, <-> <==, ==, ==>, <=> - - regex by @shiraneyo """ + # regex by @shiraneyo return bool(re.match(r"^\s*(?P-+|=+)(?P>?)\s*$", inp)) def aspect_ratio(image_src):