Skip to content

Commit 8abf459

Browse files
committed
Support "language-ruby" as well as "brush-ruby"
1 parent 46dcf34 commit 8abf459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/jquery.syntax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ var Syntax = {
219219
// brush names are by default lower case - normalize so we can detect it.
220220
className = className.toLowerCase();
221221

222-
var match = className.match(/brush-([\S]+)/);
222+
var match = className.match(/(brush|language)-([\S]+)/);
223223

224224
if (match) {
225-
return match[1];
225+
return match[2];
226226
} else {
227227
var classes = className.split(/ /);
228228

0 commit comments

Comments
 (0)