Skip to content

Commit

Permalink
Fix default dep version regex #1
Browse files Browse the repository at this point in the history
  • Loading branch information
morrislaptop committed Jun 2, 2018
1 parent 0b08b73 commit b082274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebpackDevServerBaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ abstract protected function getDevDependency();
* Get a regex to check the dev dependency version
*/
protected function getDevDependencyVersionPattern() {
return '/*/';
return '/.*/';
}

/**
Expand Down Expand Up @@ -139,7 +139,7 @@ protected function isNodeServeSite()
* Add restart=1 to the URL to return true
*/
protected function wantsToRestart() {
return strpos($_SERVER['REQUEST_URI'], 'restart=1') !== false;
return !empty($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'restart=1') !== false;
}

/**
Expand Down

0 comments on commit b082274

Please sign in to comment.