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

deal with escaping links that are textual content of links when prote… #908

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

opoudjis
Copy link
Contributor

@opoudjis opoudjis commented Aug 7, 2024

…cting links from character substitution: metanorma/metanorma-ogc#671

Metanorma PR checklist

@opoudjis opoudjis self-assigned this Aug 7, 2024
Copy link

@hound hound bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Error: RuboCop found unknown Ruby version 3.4 in `TargetRubyVersion` paramete...
Error: RuboCop found unknown Ruby version 3.4 in `TargetRubyVersion` parameter (in .rubocop.yml).
Supported versions: 2.4, 2.5, 2.6, 2.7, 3.0

Comment on lines +143 to +151
text
# .gsub(InlineLinkMacroRx) do
# $1.empty? ? "\\#{$2}#{$3}#{$4}" : text
# end
.gsub(InlineLinkRx) do
esc = $1 == "link:" ? "" : "\\"
x = $4 || "#{$5}#{$6}"
"#{$1}#{esc}#{$2}#{$3}#{x}"
end

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on a
library input
may run slow on strings starting with 'irc://!' and with many repetitions of '!!'.
Copy link

@hound hound bot left a comment

Choose a reason for hiding this comment

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

Some files could not be reviewed due to errors:

Error: RuboCop found unknown Ruby version 3.4 in `TargetRubyVersion` paramete...
Error: RuboCop found unknown Ruby version 3.4 in `TargetRubyVersion` parameter (in .rubocop.yml).
Supported versions: 2.4, 2.5, 2.6, 2.7, 3.0

@opoudjis opoudjis merged commit 26b6592 into main Aug 8, 2024
18 of 20 checks passed
@opoudjis opoudjis deleted the fix/esc-url-recurse branch August 8, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant