Skip to content

Commit

Permalink
Make 'or' case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
4refael committed Aug 4, 2017
1 parent c969ecd commit cd1d414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/View/Compilers/Concerns/CompilesEchos.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ protected function compileEscapedEchos($value)
*/
public function compileEchoDefaults($value)
{
return preg_replace('/^(?=\$)(.+?)(?:\s+or\s+)(.+?)$/s', 'isset($1) ? $1 : $2', $value);
return preg_replace('/^(?=\$)(.+?)(?:\s+or\s+)(.+?)$/si', 'isset($1) ? $1 : $2', $value);
}
}

0 comments on commit cd1d414

Please sign in to comment.