comparison vendor/symfony/validator/Constraints/Regex.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
77 $delimiter = $this->pattern[0]; 77 $delimiter = $this->pattern[0];
78 78
79 // Unescape the delimiter 79 // Unescape the delimiter
80 $pattern = str_replace('\\'.$delimiter, $delimiter, substr($this->pattern, 1, -1)); 80 $pattern = str_replace('\\'.$delimiter, $delimiter, substr($this->pattern, 1, -1));
81 81
82 // If the pattern is inverted, we can simply wrap it in 82 // If the pattern is inverted, we can wrap it in
83 // ((?!pattern).)* 83 // ((?!pattern).)*
84 if (!$this->match) { 84 if (!$this->match) {
85 return '((?!'.$pattern.').)*'; 85 return '((?!'.$pattern.').)*';
86 } 86 }
87 87