Permalink
Browse files

fix command line check to allow for jquery-like snippets

  • Loading branch information...
1 parent cebd9be commit 0eaa0031781dbc86e075b3b914e30f5424914c6e @fat fat committed with Alexis Sellier Apr 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 hijs.js
View
@@ -46,7 +46,7 @@ for (var i = 0, children; i < nodes.length; i++) {
if (code.length >= 0) { // It's a text node
// Don't highlight command-line snippets
- if (! /^\$/.test(code.nodeValue.trim())) {
+ if (! /^\$\s/.test(code.nodeValue.trim())) {
syntax.forEach(function (s) {
var k = s[0], v = s[1];
code.nodeValue = code.nodeValue.replace(v, function (_, m) {

0 comments on commit 0eaa003

Please sign in to comment.