redhat-documentation / vale-at-red-hat

Vale config files, styles, and docs to help individuals and teams roll out Vale
https://redhat-documentation.github.io/vale-at-red-hat/
MIT License
37 stars 58 forks source link

Fix RedHat.CaseSensitiveTerms rule for "Customer Portal" to detect preceding "Red Hat" defined in an attribute #474

Open michelle-purcell opened 1 year ago

michelle-purcell commented 1 year ago

Describe the bug The following asciidoc source: image

Generates a false 'error': image

aireilly commented 1 year ago

What does the complete string of {CompanyName} Customer Portal resolve to in the HTML? if it's this for example:

<p>Red&nbsp;Hat Customer Portal</p> Then we just need to update the rule to cater for &nbsp;

michelle-purcell commented 1 year ago

@aireilly - Sorry I missed this Q. Here's the asciidoctor HTML output:

... log in to the Red&#160;Hat Customer Portal and go...

The {CompanyName} attribute is set as follows: :CompanyName: Red{nbsp}Hat

Thanks

aireilly commented 1 year ago

Away from computer, but this should get you close: (?<!Red&#160;Hat\s|Red Hat\s)Customer Portal