From 2b30db1b168bfd5f106b800e6198ba56f3cd94b7 Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Tue, 12 Jan 2021 13:51:58 +0300 Subject: [PATCH] allow path binding source replacement with original case too --- npm/ng-packs/packages/schematics/src/models/method.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/ng-packs/packages/schematics/src/models/method.ts b/npm/ng-packs/packages/schematics/src/models/method.ts index c2833a7bfda..7dca1668f52 100644 --- a/npm/ng-packs/packages/schematics/src/models/method.ts +++ b/npm/ng-packs/packages/schematics/src/models/method.ts @@ -54,7 +54,7 @@ export class Body { this.body = value; break; case eBindingSourceId.Path: - const regex = new RegExp('{' + camelName + '}', 'g'); + const regex = new RegExp('{(' + camelName + '|' + name + ')}', 'g'); this.url = this.url.replace(regex, '${' + value + '}'); break; default: