diff --git a/docs/modules/ROOT/pages/cops_naming.adoc b/docs/modules/ROOT/pages/cops_naming.adoc index ab7a3dfc8b3..4c7edf1b29b 100644 --- a/docs/modules/ROOT/pages/cops_naming.adoc +++ b/docs/modules/ROOT/pages/cops_naming.adoc @@ -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 |=== diff --git a/docs/modules/ROOT/pages/cops_style.adoc b/docs/modules/ROOT/pages/cops_style.adoc index 9b932705fb3..1f4f68d8a74 100644 --- a/docs/modules/ROOT/pages/cops_style.adoc +++ b/docs/modules/ROOT/pages/cops_style.adoc @@ -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 @@ -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 diff --git a/docs/modules/ROOT/pages/development.adoc b/docs/modules/ROOT/pages/development.adoc index af18971c69e..9fac8348183 100644 --- a/docs/modules/ROOT/pages/development.adoc +++ b/docs/modules/ROOT/pages/development.adoc @@ -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]