Skip to content

Commit

Permalink
Don't let version without date bleed onto next line
Browse files Browse the repository at this point in the history
The `\s` was matching the newline.
  • Loading branch information
rwstauner committed Jan 13, 2014
1 parent 6821118 commit 6aa9f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/static/js/shBrushCPANChanges.js
Expand Up @@ -28,7 +28,7 @@
this.regexList = [
// these classes/colors are totally arbitrary
{ regex: /^\{\{\$NEXT\}\}$/gm, css: 'color3' }, // placeholder (oops)
{ regex: /^v?([0-9._]+)(-TRIAL)?\s+(.+)/gm, css: 'constants' }, // version/date
{ regex: /^v?([0-9._]+)(-TRIAL)?([ \t]+.+)?/gm, css: 'constants' }, // version/date
{ regex: /^\s+\[.+?\]/gm, css: 'value' }, // group
{ regex: /^\s+[-*]/gm, css: 'functions' }, // item marker
{ regex: /^[^v0-9].+\n(?=\nv?[0-9_.])/g, css: 'preprocessor' } // preamble
Expand Down

0 comments on commit 6aa9f93

Please sign in to comment.