Module: RFC2046
- Included in:
- HTMLConformanceChecker
- Defined in:
- lib/html5/filters/rfc2046.rb
Instance Method Summary collapse
Instance Method Details
#is_valid_mime_type(value) ⇒ Object
25 26 27 28 29 |
# File 'lib/html5/filters/rfc2046.rb', line 25 def is_valid_mime_type(value) # mime_re = Regexp.new('[^\s()<>,;:\\"/[\]?=]+/[^\s()<>,;:\\"/[\]?=]+(\s*;\s*[^\s()<>,;:\\"/[\]?=]+=("(\\"|[^"])*"|[^\s()<>,;:\\"/[\]?=]+))*$') # !!mime_re.match(value) true end |