Skip to content

Commit 5406456

Browse files
committed
Resolve SyntaxWarning in Fireeye Importer
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent b8f3936 commit 5406456

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vulnerabilities/importers/fireeye.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def matcher_url(ref) -> str:
112112
"""
113113
Returns URL of the reference markup from reference url in Markdown format
114114
"""
115-
markup_regex = "\[([^\[]+)]\(\s*(http[s]?://.+)\s*\)"
115+
markup_regex = r"\[([^\[]+)]\(\s*(http[s]?://.+)\s*\)"
116116
matched_markup = re.findall(markup_regex, ref)
117117
if matched_markup:
118118
return matched_markup[0][1]

vulnerabilities/pipelines/v2_importers/fireeye_importer_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def matcher_url(ref) -> str:
154154
"""
155155
Returns URL of the reference markup from reference url in Markdown format
156156
"""
157-
markup_regex = "\[([^\[]+)]\(\s*(http[s]?://.+)\s*\)"
157+
markup_regex = r"\[([^\[]+)]\(\s*(http[s]?://.+)\s*\)"
158158
matched_markup = re.findall(markup_regex, ref)
159159
if matched_markup:
160160
return matched_markup[0][1]

0 commit comments

Comments
 (0)