liquid.rb 353 B

12345678
  1. module Liquid
  2. # https://github.com/Shopify/liquid/pull/623
  3. remove_const :PartialTemplateParser
  4. remove_const :TemplateParser
  5. PartialTemplateParser = /#{TagStart}.*?#{TagEnd}|#{VariableStart}(?:(?:[^'"{}]+|#{QuotedString})*?|.*?)#{VariableIncompleteEnd}/m
  6. TemplateParser = /(#{PartialTemplateParser}|#{AnyStartingTag})/m
  7. end