Browse Source
Merge pull request #7168 from abpframework/fix/7160
Allowed path binding source replacement with original case
pull/7170/head
Levent Arman Özak
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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: |
|
|
|
|