Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/iranianpep/botonomous
Browse files Browse the repository at this point in the history
  • Loading branch information
iranianpep committed Jul 18, 2017
2 parents 159347e + 789e476 commit 5266e68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Botonomous/utility/StringUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ private function getFindPattern($toFind, $wordBoundary)
public function findInString($toFind, $subject, $wordBoundary = true)
{
$pattern = $this->getFindPattern($toFind, $wordBoundary);

return preg_match($pattern, $subject) ? true : false;
}

Expand Down

0 comments on commit 5266e68

Please sign in to comment.