Merge pull request #34 from chingan90/feature/mime-regex-change

When we regex-check the MIME header we should also support zero space…
This commit is contained in:
Jaehyun Shin 2018-02-12 10:28:11 +09:00 committed by GitHub
commit 45fe9b1950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ defmodule Readability do
protect_attrs: ~r/^(?!id|rel|for|summary|title|href|src|alt|srcdoc)/i
]
@markup_mimes ~r/^(application|text)\/[a-z\-_\.\+]+ml(;\s+charset=.*)?$/i
@markup_mimes ~r/^(application|text)\/[a-z\-_\.\+]+ml(;\s*charset=.*)?$/i
@type html_tree :: tuple | list
@type raw_html :: binary