Permalink
Browse files

false postivie in isitup

  • Loading branch information...
1 parent ad1418e commit 26375bed8f4fbb8be7c2e08482cd7d5c55889298 yegg committed May 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/DDG/Spice/IsItUp.pm
View
4 lib/DDG/Spice/IsItUp.pm
@@ -4,7 +4,9 @@ use DDG::Spice;
spice is_cached => 0;
-triggers query_lc => qr/^(?:is\s|)([0-9a-z\-]+)(?:(\.[a-z]{2,4})|)\s(?:up|down|working)/;
+# false positive: scrounges up
+# in response forcing is, but may want to only check for is if no domain extension
+triggers query_lc => qr/^(?:is\s)([0-9a-z\-]+)(?:(\.[a-z]{2,4})|)\s(?:up|down|working)/;
spice to => 'http://isitup.org/$1.json?callback={{callback}}';

0 comments on commit 26375be

Please sign in to comment.