Skip to content

Commit

Permalink
Merge pull request #15 from woothee/fix_msie11
Browse files Browse the repository at this point in the history
Fix MSIE11 and prepare v1.0.1
Close #14
  • Loading branch information
yuya-takeyama committed Jan 14, 2015
2 parents 11bf04d + eb72cee commit f1063bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Install this library using [Composer](https://getcomposer.org/).
Run below command in your project directory.

```
$ composer require 'woothee/woothee:*'
$ composer require woothee/woothee
```

Or add this library in your `composer.json`'s `require` section manually.
Expand Down
4 changes: 2 additions & 2 deletions src/AgentCategory/Browser/Msie.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public static function challenge($ua, &$result)

if (preg_match('/MSIE ([.0-9]+);/', $ua, $matches) === 1) {
$version = $matches[1];
} elseif (preg_match('/Trident\/([.0-9]+);(?: BOIE[0-9]+;[A-Z]+;)? rv:([.0-9]+)/', $ua, $matches) === 1) {
$version = $matches[2];
} elseif (preg_match('/Trident\/([.0-9]+);/', $ua) === 1 && preg_match('/rv:([.0-9]+)/', $ua, $matches) === 1) {
$version = $matches[1];
} elseif (preg_match('/IEMobile\/([.0-9]+);/', $ua, $matches) === 1) {
$version = $matches[1];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Classifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class Classifier
{
const VERSION = '1.0.0';
const VERSION = '1.0.1';

public function isCrawler($ua)
{
Expand Down
2 changes: 1 addition & 1 deletion woothee

0 comments on commit f1063bd

Please sign in to comment.