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

[Fix #9150] Escape special chars in docs #9904

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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