diff --git a/docs/analyzers/feed.md b/docs/analyzers/feed.md index 6428c4c5..1165fc40 100644 --- a/docs/analyzers/feed.md +++ b/docs/analyzers/feed.md @@ -47,7 +47,7 @@ json: ... ### JSON -`json` (`hash`) is an JSON body. Optional. +`json` (`hash`) is a JSON data. Optional. ## Examples diff --git a/lib/mihari/services/feed.rb b/lib/mihari/services/feed.rb index 9532ff5a..5cf76932 100644 --- a/lib/mihari/services/feed.rb +++ b/lib/mihari/services/feed.rb @@ -98,7 +98,7 @@ def call(input_enumerator, selector) input_enumerator.instance_eval(selector) end.call - raise TypeError unless parsed.all?(String) + raise TypeError unless parsed.is_a?(Array) || parsed.all?(String) parsed end