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

Cover ** and UnorderedList tags #42

Open
wants to merge 6 commits into
base: release-4.3.0
Choose a base branch
from
Open

Conversation

rachkor
Copy link
Member

@rachkor rachkor commented Jan 21, 2022

Summary

Parse ** correctly and clean up UnorderedList tags in the description field.

Instances of ** can crash the entire Word export without a helpful error message to indicate the source of the problem. So, we need to remove them.

This PR also includes a couple of updates to catch instances of <UnorderedList> tags that weren't caught by the previous logic.

I assign all rights, including copyright, to any future Dradis work by myself to Security Roots.

result.gsub!(/<OrderedList(.*?)>(.*?)<\/OrderedList>/m){|m| "#{ $2 }"}
result.gsub!(/<ListItem>|<\/ListItem>/, '')
result.gsub!(/<UnorderedList>|<\/UnorderedList>/, '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? I'd expect L118 deals with this case.

@sean-yeoh sean-yeoh changed the base branch from main to release-4.3.0 April 25, 2022 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants