Sha256: f2301c19f38347c027a739cc5b133bfeb8cef4e21cd3b9794b858be268a81523
Contents?: true
Size: 456 Bytes
Versions: 242
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: false require_relative "../child" module REXML module DTD class ElementDecl < Child START = "<!ELEMENT" START_RE = /^\s*#{START}/um # PATTERN_RE = /^\s*(#{START}.*?)>/um PATTERN_RE = /^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/ #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true) def initialize match @name = match[1] @rest = match[2] end end end end
Version data entries
242 entries across 235 versions & 36 rubygems