Sha256: 2367b288a0fa1e57dd8fdd1cdead6b4f5f3a559f8cc35d2e97edd5d38ac711a7
Contents?: true
Size: 564 Bytes
Versions: 7
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module ThemeCheck module RegexHelpers LIQUID_TAG = /#{Liquid::TagStart}.*?#{Liquid::TagEnd}/om LIQUID_VARIABLE = /#{Liquid::VariableStart}.*?#{Liquid::VariableEnd}/om LIQUID_TAG_OR_VARIABLE = /#{LIQUID_TAG}|#{LIQUID_VARIABLE}/om HTML_LIQUID_PLACEHOLDER = /≬[0-9a-z]+#*≬/m START_OR_END_QUOTE = /(^['"])|(['"]$)/ def matches(s, re) start_at = 0 matches = [] while (m = s.match(re, start_at)) matches.push(m) start_at = m.end(0) end matches end end end
Version data entries
7 entries across 7 versions & 1 rubygems