X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FUtility%2FPath%2FDrupal7%2FPathComponent.php;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Fsrc%2FUtility%2FPath%2FDrupal7%2FPathComponent.php;h=f29b2e1ec502b53ed0df0809287a4baccf4b6266;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/Drupal7/PathComponent.php b/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/Drupal7/PathComponent.php new file mode 100644 index 000000000..f29b2e1ec --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/Drupal7/PathComponent.php @@ -0,0 +1,33 @@ +value == '%'; + } + + /** + * {@inheritdoc} + */ + public function isWildcard() { + return (boolean) preg_match('/%[a-zA-Z0-9_]+/', $this->value); + } + +}