OSDN Git Service

正規表現間違えた><
authortakezoe <takezoe@users.osdn.me>
Sat, 23 Oct 2010 16:06:03 +0000 (16:06 +0000)
committertakezoe <takezoe@users.osdn.me>
Sat, 23 Oct 2010 16:06:03 +0000 (16:06 +0000)
lib/Util.pm

index 7393012..32b1b1b 100644 (file)
@@ -285,7 +285,7 @@ sub smartphone {
        if(!defined($ua)){
                return 0;
        }
-       if($ua =~ /Android// || $ua =~ /iPhone/){
+       if($ua =~ /Android/ || $ua =~ /iPhone/){
                return 1;
        } else {
                return 0;