Skip to content

Commit

Permalink
use explicit space character
Browse files Browse the repository at this point in the history
  • Loading branch information
Primajin committed Jan 16, 2022
1 parent 9eafa33 commit 17f2878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-invalid-html-attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function checkLiteralValueNode(context, attributeName, node, parentNode, parentN
const pairAttributeParts = splitIntoRangedParts(node, /(?=(\b\S+\s*\S+))/g);
for (const pairPart of pairAttributeParts) {
for (const [pairing, siblings] of allowedPairsForAttribute) {
const attributes = pairPart.reportingValue.split(' ');
const attributes = pairPart.reportingValue.split('\u0020');
const [firstValue, secondValue] = attributes;
if (firstValue === pairing) {
const lastValue = attributes[attributes.length - 1]; // in case of multiple white spaces
Expand Down

0 comments on commit 17f2878

Please sign in to comment.