Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
37 // $matches = array (size=3) | 37 // $matches = array (size=3) |
38 // 0 => string 'testns|testel' (length=13) | 38 // 0 => string 'testns|testel' (length=13) |
39 // 1 => string 'testns' (length=6) | 39 // 1 => string 'testns' (length=6) |
40 // 2 => string 'testel' (length=6) | 40 // 2 => string 'testel' (length=6) |
41 if (preg_match('/^(?:([a-z]++)\|)?([\w-]++|\*)$/i', trim($source), $matches)) { | 41 if (preg_match('/^(?:([a-z]++)\|)?([\w-]++|\*)$/i', trim($source), $matches)) { |
42 return array(new SelectorNode(new ElementNode($matches[1] ?: null, $matches[2]))); | 42 return [new SelectorNode(new ElementNode($matches[1] ?: null, $matches[2]))]; |
43 } | 43 } |
44 | 44 |
45 return array(); | 45 return []; |
46 } | 46 } |
47 } | 47 } |