From a3550be4c9de0159bc526dd411bf09071349f51f Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 24 May 2016 20:22:03 +0100 Subject: [PATCH] MakeMeASandwich: Each item in the array should be either a string or an object, it can't be an object containing text: string --- lib/DDG/Goodie/MakeMeASandwich.pm | 2 +- t/MakeMeASandwich.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DDG/Goodie/MakeMeASandwich.pm b/lib/DDG/Goodie/MakeMeASandwich.pm index c37254cd7..83e4674e9 100755 --- a/lib/DDG/Goodie/MakeMeASandwich.pm +++ b/lib/DDG/Goodie/MakeMeASandwich.pm @@ -27,7 +27,7 @@ handle remainder => sub { data => { title => $result, subtitle => [ - { text => $input }, + $input, { text => "XKCD 149", href => "https://duckduckgo.com/?q=xkcd%20149" } ] }, diff --git a/t/MakeMeASandwich.t b/t/MakeMeASandwich.t index 1fb888302..41e66900c 100755 --- a/t/MakeMeASandwich.t +++ b/t/MakeMeASandwich.t @@ -20,7 +20,7 @@ sub build_test data => { title => $text, subtitle => [ - { text => $input }, + $input, { text => "XKCD 149", href => "https://duckduckgo.com/?q=xkcd%20149"} ] },