Convert a bunch of URL formats to patterns (#2293)

Follow-on to #2279
This commit is contained in:
Paul Melnikow
2018-11-09 14:03:00 -05:00
committed by GitHub
parent ec65291a11
commit c4af2cac53
11 changed files with 17 additions and 34 deletions

View File

@@ -39,8 +39,7 @@ function VersionForExtensionType(extensionType) {
static get url() {
return {
base: `wordpress/${extensionType}/v`,
format: '(.+)',
capture: ['slug'],
pattern: ':slug',
}
}