Skip to content

Commit

Permalink
[Fix rubocop#9150] Escape special chars in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
William Montgomery committed Jul 2, 2021
1 parent 981a8a2 commit b24c33c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_naming.adoc
Expand Up @@ -501,7 +501,7 @@ EOS
| Name | Default value | Configurable values

| ForbiddenDelimiters
| `(?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))`
| `(?-mix:(^|\s)(EO[A-Z]\{1\}|END)(\s|$))`
| Array
|===

Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/cops_style.adoc
Expand Up @@ -2084,7 +2084,7 @@ an offense is reported.
| Name | Default value | Configurable values

| Notice
| `^Copyright (\(c\) )?2[0-9]{3} .+`
| `^Copyright (\(c\) )?2[0-9]\{3\} .+`
| String

| AutocorrectNotice
Expand Down Expand Up @@ -12474,8 +12474,8 @@ array of 2 or fewer elements.
| Integer

| WordRegex
| `(?-mix:\A(?:\p{Word}|\p{Word}-\p{Word}|\n|\t)+\z)`
|
| `(?-mix:\A(?:\p\{Word\}|\p\{Word\}-\p\{Word\}|\n|\t)+\z)`
|
|===

=== References
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/development.adoc
Expand Up @@ -271,8 +271,8 @@ describe RuboCop::Cop::Style::SimplifyNotEmptyWithAny, :config do
end
----

If your code has variables of different lengths, you can use `%{foo}`,
`^{foo}`, and `_{foo}` to format your template; you can also abbreviate
If your code has variables of different lengths, you can use `%\{foo\}`,
`^\{foo\}`, and `_\{foo\}` to format your template; you can also abbreviate
offense messages with `[...]`:

[source,ruby]
Expand Down

0 comments on commit b24c33c

Please sign in to comment.