Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 229 Bytes
class DelimiterMatcher
DELIMITER_CHARACTERS ||= "-_,=+~#*ᐧ—"
DELIMITER_REGEX ||= /^[[:blank:]]*[#{Regexp.escape(DELIMITER_CHARACTERS)}]+[[:blank:]]*$/
def self.match?(line)
line =~ DELIMITER_REGEX
end
end