X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fexpression-language%2FResources%2Fbin%2Fgenerate_operator_regex.php;fp=vendor%2Fsymfony%2Fexpression-language%2FResources%2Fbin%2Fgenerate_operator_regex.php;h=0000000000000000000000000000000000000000;hp=74a100890d9ae7247f221e7f67f2892eac6fb946;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/expression-language/Resources/bin/generate_operator_regex.php b/vendor/symfony/expression-language/Resources/bin/generate_operator_regex.php deleted file mode 100644 index 74a100890..000000000 --- a/vendor/symfony/expression-language/Resources/bin/generate_operator_regex.php +++ /dev/null @@ -1,23 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -$operators = array('not', '!', 'or', '||', '&&', 'and', '|', '^', '&', '==', '===', '!=', '!==', '<', '>', '>=', '<=', 'not in', 'in', '..', '+', '-', '~', '*', '/', '%', 'matches', '**'); -$operators = array_combine($operators, array_map('strlen', $operators)); -arsort($operators); - -$regex = array(); -foreach ($operators as $operator => $length) { - // an operator that ends with a character must be followed by - // a whitespace or a parenthesis - $regex[] = preg_quote($operator, '/').(ctype_alpha($operator[$length - 1]) ? '(?=[\s(])' : ''); -} - -echo '/'.implode('|', $regex).'/A';