Skip to content
Browse files

improve minimal regexes

  • Loading branch information...
1 parent 37f969c commit 7e916dd0d5d09ba3c440a21be9a25ec093c423a8 @chjj committed Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/liquor_minimal.js
View
4 lib/liquor_minimal.js
@@ -38,8 +38,8 @@ var liquor = (function() {
};
var rules = {
- iterate: /^( *)@:([^\s]+) *([^\n]*(?:\n+\1 {2}[^\n]+)*)/,
- condition: /^( *)(?:\?|(!)):([^\s]+) *([^\n]*(?:\n+\1 {2}[^\n]+)*)/,
+ iterate: /^( *)@:([^\s]+) *([^\n]*(?:\n+\1 {2}[^\n]*)*)/,
+ condition: /^( *)(?:\?|(!)):([^\s]+) *([^\n]*(?:\n+\1 {2}[^\n]*)*)/,
evaluate: /^`([^`]+)`/,
interpolate: /^#{([^}]+)}/,
text: /^[^\0]+?(?= *@:| *\?:| *!:|`|#{|$)/

0 comments on commit 7e916dd

Please sign in to comment.
Something went wrong with that request. Please try again.