mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
fix regex
This commit is contained in:
2
.github/vale/Docker/CodeIndentation.yml
vendored
2
.github/vale/Docker/CodeIndentation.yml
vendored
@@ -4,7 +4,7 @@ link: https://docs.docker.com/contribute/style/formatting/#best-practice-for-com
|
||||
level: warning
|
||||
scope: raw
|
||||
# check for 1, 2, 4, 6 or more spaces at start of line before code fence (```)
|
||||
#If not indented by 3 spaces at first level or 5 spaces at second level, then a hidden space is inserted and copied by the copy code feature.
|
||||
# If not indented by 3 spaces at first level or 5 spaces at second level, then a hidden space is inserted and copied by the copy code feature.
|
||||
raw:
|
||||
- '(?m:^[ ]{1}\`\`\`)|'
|
||||
- '(?m:^[ ]{2}\`\`\`)|'
|
||||
|
||||
2
.github/vale/Docker/CodeOutput.yml
vendored
2
.github/vale/Docker/CodeOutput.yml
vendored
@@ -8,5 +8,5 @@ raw:
|
||||
- '(\`\`\`console\n)' # start ```console
|
||||
- '[^(\$|#)]*' # 0 or more characters without $ or #
|
||||
- '.*(\$|#).*[^\`\\]\n' # 1 line with $ or #, without ` or \ at end
|
||||
- '((?!\`\`\`|\$|#)(.|\n))*' # 0 or more lines without ```, $, or #
|
||||
- '((?!\`\`\`|\$|#)(.|\n))+' # 1 or more lines without ```, $, or #
|
||||
- '\`\`\`' # stop ```
|
||||
|
||||
9
.github/vale/Docker/CodeSingleCommand.yml
vendored
9
.github/vale/Docker/CodeSingleCommand.yml
vendored
@@ -6,10 +6,9 @@ scope: raw
|
||||
#check for console code fence followed by at least two lines with $ or #
|
||||
raw:
|
||||
- '\`\`\`console\n' # start at ```console
|
||||
- '[^(\$|#)]*' # 0 or more characters without $ or #
|
||||
- '[^(\$|#|\`\`\`)]*' # 0 or more characters without $, #, or ```
|
||||
- '.*(\$|#).*\n' # 1 line with $ or #
|
||||
- '[^(\$|#)]*' # 0 or more characters without $ or #
|
||||
- '[^(\$|#|\`\`\`)]*' # 0 or more characters without $, #, or ```
|
||||
- '.*(\$|#).*\n' # 1 line with $ or #
|
||||
- '((?!\`\`\`)(.|\n))*' # 0 or characters without ```
|
||||
- '\`\`\`' # stop ```
|
||||
|
||||
- '[^(\`\`\`)]*' # 0 or more characters without ```
|
||||
- '\`\`\`' # stop ```
|
||||
Reference in New Issue
Block a user