wmde/WikibaseSerializationJavaScript — pull request #9 by thiemowmde (2014-11-10 17:48:59+00:00)
Title: Simplify remoteExtPath regex

The complexity of this regular expression is just not needed. Just search for the first occurrence of `/vendor/` or `/extensions/` and match everything from there, that's it. Using a regex character (`+`) as delimiter does have the advantage that it must not be repeated when calling `preg_quote`, it's always quoted.