From cd1d4146e5ad9bc7f2e9a3fe5b58862a19ecdce0 Mon Sep 17 00:00:00 2001 From: refael iliaguyev Date: Fri, 4 Aug 2017 23:43:47 +0300 Subject: [PATCH] Make 'or' case insensitive --- src/Illuminate/View/Compilers/Concerns/CompilesEchos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesEchos.php b/src/Illuminate/View/Compilers/Concerns/CompilesEchos.php index a7b48871db7b..018f90b8911e 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesEchos.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesEchos.php @@ -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); } }