diff --git a/packages/spectrocloud-docs-internal/styles/spectrocloud-docs-internal/oxford-comma.yml b/packages/spectrocloud-docs-internal/styles/spectrocloud-docs-internal/oxford-comma.yml index 227d86a..ae992d9 100644 --- a/packages/spectrocloud-docs-internal/styles/spectrocloud-docs-internal/oxford-comma.yml +++ b/packages/spectrocloud-docs-internal/styles/spectrocloud-docs-internal/oxford-comma.yml @@ -8,4 +8,4 @@ link: https://spectrocloud.atlassian.net/wiki/spaces/DE/pages/1765933057/Spectro scope: sentence nonword: true tokens: - - '(\b(?:\w+(?: \w+)?, )+\b(?:\w+(?: \w+)?) (?:and|or) \w+(?: \w+)?[.?!])' \ No newline at end of file + - '\b\w+(?: \w+)*, \w+(?: \w+)* (and|or) \w+(?: \w+)*[.?!]' diff --git a/packages/spectrocloud/styles/spectrocloud/oxford-comma.yml b/packages/spectrocloud/styles/spectrocloud/oxford-comma.yml index 227d86a..ae992d9 100644 --- a/packages/spectrocloud/styles/spectrocloud/oxford-comma.yml +++ b/packages/spectrocloud/styles/spectrocloud/oxford-comma.yml @@ -8,4 +8,4 @@ link: https://spectrocloud.atlassian.net/wiki/spaces/DE/pages/1765933057/Spectro scope: sentence nonword: true tokens: - - '(\b(?:\w+(?: \w+)?, )+\b(?:\w+(?: \w+)?) (?:and|or) \w+(?: \w+)?[.?!])' \ No newline at end of file + - '\b\w+(?: \w+)*, \w+(?: \w+)* (and|or) \w+(?: \w+)*[.?!]' diff --git a/packages/spectrocloud/tests/oxford-comma/.vale.ini b/packages/spectrocloud/tests/oxford-comma/.vale.ini new file mode 100644 index 0000000..d158a09 --- /dev/null +++ b/packages/spectrocloud/tests/oxford-comma/.vale.ini @@ -0,0 +1,4 @@ +StylesPath = ../../styles/ +MinAlertLevel = suggestion +[*.md] +spectrocloud.Oxford-Comma = YES \ No newline at end of file diff --git a/packages/spectrocloud/tests/oxford-comma/fail.md b/packages/spectrocloud/tests/oxford-comma/fail.md new file mode 100644 index 0000000..1175761 --- /dev/null +++ b/packages/spectrocloud/tests/oxford-comma/fail.md @@ -0,0 +1,5 @@ +## Overview + +The project requires collaboration among engineers, designers and managers to succeed. + +From the left Main Menu, select Profiles and then select Add Cluster Profile. diff --git a/packages/spectrocloud/tests/oxford-comma/pass.md b/packages/spectrocloud/tests/oxford-comma/pass.md new file mode 100644 index 0000000..0342ac9 --- /dev/null +++ b/packages/spectrocloud/tests/oxford-comma/pass.md @@ -0,0 +1,5 @@ +## Overview + +With a unique approach to managing multiple clusters, Palette gives IT teams complete control, visibility, and production-scale efficiencies. + +From the left Main Menu, select Profiles, and then select Add Cluster Profile.