Sha256: f18e8f991de9d84b77590857119779ec779b8a79120a251910a404bf399d0244
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module Webmention module Verification module Verifiers class PlaintextVerifier < Verifier @mime_types = ['text/plain'] Client.register_verifier(self) private def parse_response_body response_body.scan(target_regexp) end def target_regexp @target_regexp ||= /(?:^|\s)#{target_regexp_str}(?:\s|$)/ end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems