fix(aio): fix SW routing RegExp to allow redirecting `/api/animate` URLs (#22483)

PR Close #22483
This commit is contained in:
George Kalpakas 2018-02-28 01:16:58 +02:00 committed by Alex Rickabaugh
parent 120673a3ac
commit a9e05ac82f
2 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,7 @@
"routing": { "routing": {
"index": "/index.html", "index": "/index.html",
"routes": { "routes": {
"^(?!/styleguide|/docs/.|(?:/guide/(?:cli-quickstart|metadata|ngmodule|service-worker-(?:getstart|comm|configref)|learning-angular)|/news)(?:\\.html|/)?$|/testing|/api/(?:.+/[^/]+-|platform-browser/AnimationDriver|testing|api/|(?:common/(?:NgModel|Control|MaxLengthValidator))|(?:[^/]+/)?(?:NgFor(?:$|-)|AnimationStateDeclarationMetadata|CORE_DIRECTIVES|PLATFORM_PIPES|DirectiveMetadata|HTTP_PROVIDERS))|.*/stackblitz(?:\\.html)?$|.*\\.[^\/.]+$)": { "^(?!/styleguide|/docs/.|(?:/guide/(?:cli-quickstart|metadata|ngmodule|service-worker-(?:getstart|comm|configref)|learning-angular)|/news)(?:\\.html|/)?$|/testing|/api/(?:.+/[^/]+-|platform-browser/AnimationDriver|testing/|api/|animate/|(?:common/(?:NgModel|Control|MaxLengthValidator))|(?:[^/]+/)?(?:NgFor(?:$|-)|AnimationStateDeclarationMetadata|CORE_DIRECTIVES|PLATFORM_PIPES|DirectiveMetadata|HTTP_PROVIDERS))|.*/stackblitz(?:\\.html)?$|.*\\.[^\/.]+$)": {
"match": "regex" "match": "regex"
} }
} }

View File

@ -1,3 +1,5 @@
/api/animate/AnimationBuilder /api/animations/AnimationBuilder
/api/animate/CssAnimationBuilder /api/animations/CssAnimationBuilder
/api/api/core/ElementRef /api/core/ElementRef /api/api/core/ElementRef /api/core/ElementRef
/api/common/Control-class /api/forms/FormControl /api/common/Control-class /api/forms/FormControl
/api/common/CORE_DIRECTIVES /api/common/CommonModule /api/common/CORE_DIRECTIVES /api/common/CommonModule