parse rss 0.91
This commit is contained in:
1 parent
849ef90d19
commit
7200ef5215
2 files changed
+2
-1
No files matched your search
@@ -7,7 +7,7 @@ defmodule FeedReader.Formats.RSS do
|
||||
|
||||
@impl true
|
||||
def matches_prefix?(prefix) do
|
||||
Regex.match?(~r/<rss\b[^>]*\bversion\s*=\s*(["'])2\.0\1/is, prefix)
|
||||
Regex.match?(~r/<rss\b[^>]*\bversion\s*=\s*(["'])(?:0\.9(?:1|2)?|2\.0)\1/is, prefix)
|
||||
end
|
||||
|
||||
@impl true
|
||||
|
||||
Reference in new issue
Block a user