lib/octopress-ink/helpers/var.rb in octopress-ink-1.0.0.alpha.29 vs lib/octopress-ink/helpers/var.rb in octopress-ink-1.0.0.alpha.30
- old
+ new
@@ -1,9 +1,9 @@
module Octopress
module Helpers
module Var
TERNARY = /(.*?)\(\s*(.+?)\s+\?\s+(.+?)\s+:\s+(.+?)\s*\)(.+)?/
- HAS_FILTERS = /(.+?)(\s+\|\s+.+)/
+ HAS_FILTERS = /(.*?)(\s+\|\s+.+)/
def self.set_var(var, operator, value, context)
case operator
when '||='
context.scopes.last[var] = value if context.scopes.last[var].nil?