Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse double asterisks correctly to avoid export errors #55

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ v4.8.0 (April 2023)

v4.7.0 (February 2023)
- Clean up code tags in description fields
- Parse `**` correctly in the description field

v4.6.0 (November 2022)
- No changes
Expand Down
2 changes: 1 addition & 1 deletion lib/dradis/plugins/nessus/gem_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.gem_version
module VERSION
MAJOR = 4
MINOR = 8
TINY = 0
TINY = 1
PRE = nil

STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
Expand Down
1 change: 1 addition & 0 deletions lib/nessus/report_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def method_missing(method, *args)
def cleanup_html(source)
result = source.dup
result.gsub!(/<code>(.*?)<\/code>/) { "\n\nbc. #{$1}\n\np. \n" }
result.gsub!(/^\s*\*\*/, "\np. **")
result
end

Expand Down