Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb56eb5

Browse files
committed
Minor update
1 parent a827453 commit bb56eb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,6 +2877,8 @@ def createGithubIssue(errMsg, excMsg):
28772877
issues = set(issues)
28782878

28792879
_ = re.sub(r"'[^']+'", "''", excMsg)
2880+
_ = re.sub(r"\s+line \d+", "", _)
2881+
_ = re.sub(r'File ".+?/(\w+\.py)', "\g<1>", _)
28802882
key = hashlib.md5(_).hexdigest()[:8]
28812883

28822884
if key in issues:

0 commit comments

Comments
 (0)