Skip to content

Commit 6647cc2

Browse files
committed
fix: Fixing JS Lint issues
1 parent 5cf56b4 commit 6647cc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/components/bolt-code-snippet/src/code-snippet.standalone.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ class BoltCodeSnippetClass extends withPreact() {
3333
};
3434

3535
replaceEntities(string) {
36-
return string.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>');
36+
return string
37+
.replace(/&amp;/g, '&')
38+
.replace(/&lt;/g, '<')
39+
.replace(/&gt;/g, '>');
3740
}
3841

3942
highlightHTML(code, lang) {

0 commit comments

Comments
 (0)