Skip to content

Commit

Permalink
Merge branch 'master' into fix-escaped-selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored May 17, 2021
2 parents 5a30d5e + ab33e2e commit 13af88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/Code/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default ({

const errorNodes: Array<Element> = [];
for (const span of Array.from(spans)) {
if (span.innerHTML && errorTokens.includes(span.innerHTML)) {
if (span.innerHTML && errorTokens.includes(span.innerHTML.trim())) {
span.classList.add(styles.errorUnderline);
errorNodes.push(span);
}
Expand Down

0 comments on commit 13af88e

Please sign in to comment.