From dd1db1c12c54a64baa349afed48770ec1f42c6f2 Mon Sep 17 00:00:00 2001 From: Leo Feyer Date: Wed, 8 Apr 2020 14:11:51 +0200 Subject: [PATCH] Adjust the documentation --- yamllint/rules/quoted_strings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yamllint/rules/quoted_strings.py b/yamllint/rules/quoted_strings.py index 5425e47..8ff288d 100644 --- a/yamllint/rules/quoted_strings.py +++ b/yamllint/rules/quoted_strings.py @@ -26,8 +26,8 @@ used. * ``required`` defines whether using quotes in string values is required (``true``, default) or not (``false``), or only allowed when really needed (``only-when-needed``). -* ``needed-extra-regex`` allows strings matching the given PCRE regex to be - quoted even when quoting is only allowed when really needed +* ``needed-extra-regex`` requires strings matching the given PCRE regex to be + quoted even when quoting is only allowed when really needed. **Note**: Multi-line strings (with ``|`` or ``>``) will not be checked. @@ -77,6 +77,7 @@ used. :: foo: 'bar' + foo: %bar% """ import re