Skip to content

Commit

Permalink
Change: Minor text update in script_xref_form plugin and test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfi-gb authored and mbrinkhoff committed Nov 13, 2023
1 parent b4e95c6 commit bf38b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/plugins/test_script_xref_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_wrong_name(self):
self.assertIsInstance(results[0], LinterError)
self.assertEqual(
'script_xref(nammmme: "foo", value:"bar");: does not conform to'
' script_xref(name:"<name>", value:"<value>");',
' script_xref(name:"<name>", value:<value>);',
results[0].message,
)

Expand Down
2 changes: 1 addition & 1 deletion troubadix/plugins/script_xref_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def check_content(
):
yield LinterError(
f"{match.group(0)}: does not conform to"
' script_xref(name:"<name>", value:"<value>");',
' script_xref(name:"<name>", value:<value>);',
file=nasl_file,
plugin=self.name,
)

0 comments on commit bf38b53

Please sign in to comment.