src/Fracture/Routing/Pattern.php
protected function applyConditions($expression, $conditions)
    {
        $search = $replace = [];

        foreach ($conditions as $key => $value) {
            $search[]  = "<$key>" . self::STRVAL;
            $replace[] = "<$key>$value";
        }

        return str_replace($search, $replace, $expression);
    }
protected function applyConditions($expression, $conditions)
    {
        $search = $replace = [];

        foreach ($conditions as $key => $value) {
            $search[]  = "<$key>" . self::STRVAL;
            $replace[] = "<$key>$value";
        }

        return str_replace($search, $replace, $expression);
    }
Inserts custom patterns in the existing regular expression