Skip to content

Commit

Permalink
parsing.py: Add 0 as the lower bound to regex quantifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
makyen committed Apr 3, 2019
1 parent bcf870a commit e36f34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsing.py
Expand Up @@ -77,7 +77,7 @@ def to_metasmoke_link(post_url, protocol=True):
msg_parser_regex = (
r"^\[ \[SmokeDetector\]\([^)]*\)(?: \| \[.+\]\(.+\))? \] [\w\s,:+\(\)*-]+: "
r"(?P<post>\[(?P<title>.+)]\((?P<post_url>(?:https?:)"
r"?\/\/[\w.]+\/questions\/\d+(?:\/.*)?|(?:https?:)?\/\/[\w.]+\/[qa]\/\d+/?)\).{,3})"
r"?\/\/[\w.]+\/questions\/\d+(?:\/.*)?|(?:https?:)?\/\/[\w.]+\/[qa]\/\d+/?)\).{0,3})"
r" by (?:\[.+\]\((?P<owner_url>.+)\)|[\w ]*) on `[\w.]+`(?: \((?:@\S+\s?)+\))?"
r"(?: \[.+\]\(.+\))?$"
)
Expand Down

0 comments on commit e36f34a

Please sign in to comment.