From a509de221a9a9aaac12ee514bb2e6f82f51b8352 Mon Sep 17 00:00:00 2001 From: johannesroesch Date: Fri, 15 Apr 2016 15:01:44 +0200 Subject: [PATCH] Update ramlMerge.php Allow spaces, ( and ) before ": !include" --- ramlMerge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ramlMerge.php b/ramlMerge.php index c0dd26b..a98e1a2 100644 --- a/ramlMerge.php +++ b/ramlMerge.php @@ -13,7 +13,7 @@ function doInclude ($file, $tabIndex = '') { $contents = $tabIndex . str_replace("\n", "\n" . $tabIndex, $contents); } - $contents = preg_replace_callback('/(([\s\t]*)([a-z0-9_\/\-]+)):[\s]+\!include ([^\s]+)/i', + $contents = preg_replace_callback('/(([\s\t]*)([a-z0-9_\/\- ()]+)):[\s]+\!include ([^\s]+)/i', function($matches) { $property = $matches[3]; $spacing = $matches[2];