Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

misc

TJ Holowaychukd3deae53a7be
diff --git a/highlight.js b/highlight.js
index 6df4a8d7..f6cddf60 100644
--- a/highlight.js
+++ b/highlight.js
@@ -10,7 +10,7 @@ function highlight(js) {
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/\/\/(.*)/gm, '<span class="comment">//$1</span>')
- .replace(/('.*')/gm, '<span class="string">$1</span>')
+ .replace(/('.*?')/gm, '<span class="string">$1</span>')
.replace(/(\d+\.\d+)/gm, '<span class="number">$1</span>')
.replace(/(\d+)/gm, '<span class="number">$1</span>')
.replace(/\bnew *(\w+)/gm, '<span class="keyword">new</span> <span class="init">$1</span>')