|
| 1 | +import {exec} from 'child_process'; |
1 | 2 | import path from 'path'; |
2 | 3 | import Promise from 'bluebird'; |
3 | 4 | import { runCmd } from '../util'; |
@@ -547,9 +548,17 @@ export class Generator extends Base { |
547 | 548 |
|
548 | 549 | function pugReplacer(contents) { |
549 | 550 | return contents |
550 | | - .replace('ngif', 'ngIf') |
551 | | - .replace('ngfor', 'ngFor') |
552 | | - .replace('ngmodel', 'ngModel'); |
| 551 | + .replace(/confirmpassword/g, 'confirmPassword') |
| 552 | + .replace(/loginform/g, 'loginForm') |
| 553 | + .replace(/newpassword/g, 'newPassword') |
| 554 | + .replace(/ngif/g, 'ngIf') |
| 555 | + .replace(/ngfor/g, 'ngFor') |
| 556 | + .replace(/ngmodel/g, 'ngModel') |
| 557 | + .replace(/ngsubmit/g, 'ngSubmit') |
| 558 | + .replace(/oldpassword/g, 'oldPassword') |
| 559 | + .replace(/routerlinkactive/g, 'routerLinkActive') |
| 560 | + .replace(/routerlink/g, 'routerLink') |
| 561 | + .replace(/signupform/g, 'signupForm'); |
553 | 562 | } |
554 | 563 |
|
555 | 564 | this.registerTransformStream([ |
|
0 commit comments