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:
commit
45fe9b1950
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue