Skip to content

Commit

Permalink
Fix doc formatting written in unescaped file path
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Mar 7, 2022
1 parent 0daf639 commit e9ebf75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cops_documentation_generator.rb
Expand Up @@ -191,8 +191,8 @@ def format_table_value(val)

def wrap_backtick(value)
if value.is_a?(String)
# Use `+` to prevent text like `**/*.gemspec` from being bold.
value.start_with?('*') ? "`+#{value}+`" : "`#{value}`"
# Use `+` to prevent text like `**/*.gemspec`, `spec/**/*` from being bold.
value.include?('*') ? "`+#{value}+`" : "`#{value}`"
else
"`#{value}`"
end
Expand Down

0 comments on commit e9ebf75

Please sign in to comment.