Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
4c34d1f6
Commit
4c34d1f6
authored
Dec 04, 2018
by
Guillaume Perréal
Browse files
IRIMetadata.parse ne retourne pas de tableau pour les IRI qui n'en n'ont qu'un.
parent
884c6a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Resources/views/common.ts.twig
View file @
4c34d1f6
...
...
@@ -170,6 +170,9 @@ export class IRIMetadata<P extends IRIParameters> {
if (!matches) {
throw new Error(`Invalid path: ${path} does not match ${this.capturePattern}`);
}
if (matches.length == 2) {
return matches[1] as any;
}
return matches.slice(1) as any;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment