CodeRay crashes with a comment having a quote right after backticks.
I think the culpid is here:
| # Converts +id+ to a valid plugin ID String, or returns +nil+. |
| # |
| # Raises +ArgumentError+ for all other objects, or if the |
| # given String includes non-alphanumeric characters (\W). |
| defvalidate_idid |
| caseid |
| whenSymbol |
| id.to_s |
| whenString |
| ifid[/\w+/] == id |
| id.downcase |
| else |
| raiseArgumentError,"Invalid id given: #{id}" |
| end |
| else |
| raiseArgumentError,"Symbol or String expected, but #{id.class} given." |
| end |
| end |
The string
Invalid id given: '%''{version}'```
can be used to test it as described here: openSUSE/open-build-service#6960
CodeRay crashes with a comment having a quote right after backticks.
I think the culpid is here:
coderay/lib/coderay/helpers/plugin_host.rb
Lines 200 to 217 in d385021
The string
can be used to test it as described here: openSUSE/open-build-service#6960