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
parent
commit
35ca3bbf78
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/schematics/src/models/method.ts

2
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:

Loading…
Cancel
Save