Skip to content

Commit

Permalink
bug fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Hope41 committed Jun 5, 2024
1 parent 6a914a4 commit aba81f2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ window.onload = () => {
if (isGrayed) lines[i] = '<span class = gray>' + lines[i] + '</span>'
else {
lines[i] = lines[i]
.replace(/(\<)([^\s].*)(\>)/g, '&lt;<span class = number>$2</span>>')
.replace(/(\/\/.*)/g, '<span class = comment>$1</span>')
.replace(/(\'.*\')/g, '<span class = string>$1</span>')
.replace(/(\b\d+\b|\.)/g, '<span class = number>$1</span>')
Expand Down

0 comments on commit aba81f2

Please sign in to comment.