src/Constraints/PageConstraint.php
protected function getEscapedPattern($text)
    {
        $rawPattern = preg_quote($text, '/');

        $escapedPattern = preg_quote(e($text), '/');

        return $rawPattern == $escapedPattern
            ? $rawPattern : "({$rawPattern}|{$escapedPattern})";
    }
protected function getEscapedPattern($text)
    {
        $rawPattern = preg_quote($text, '/');

        $escapedPattern = preg_quote(e($text), '/');

        return $rawPattern == $escapedPattern
            ? $rawPattern : "({$rawPattern}|{$escapedPattern})";
    }
protected function getEscapedPattern ( $ text ) { $ rawPattern = preg_quote ( $ text , '/' ) ; $ escapedPattern = preg_quote ( e ( $ text ) , '/' ) ; return $ rawPattern == $ escapedPattern ? $ rawPattern : "({$rawPattern}|{$escapedPattern})" ; }
Get the escaped text pattern for the constraint.

@param  string  $text
@return string
Get the escaped text pattern for the constraint .