Bug: no-trailing-whitespace does not work in windows
Provide a broad description of the bug.
Reduced test-case
<br> \r\n
Configuration
{
...,
"rules": {
"no-trailing-whitespace": "error",
...
}
}
Expected result
Validation should fail
Actual result
Validation passes
Prposed fix
Change regex in html-validate/src/rules/no-trailing-whitespace.ts
line 15 from /^[ \t]+\n$/
to /^[ \t]+\r?\n$/
Version
-
html-validate
: 2.23.0