Skip to content

Commit ba5ce18

Browse files
authored
Fix loadChildren regex
Urigo#1956
1 parent f79318a commit ba5ce18

File tree

1 file changed

+2
-2
lines changed
  • atmosphere-packages/angular-typescript-compiler

1 file changed

+2
-2
lines changed

atmosphere-packages/angular-typescript-compiler/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131

3232
const TEMPLATE_URL_REGEX = /templateUrl\s*:(\s*['"`](.*?)['"`]\s*([,}]))/gm;
3333
const STYLES_URLS_REGEX = /styleUrls *:(\s*\[[^\]]*?\])/g;
34-
const LOAD_CHILDREN_REGEX = /loadChildren\s*:(\s*['"`](.*?)['"`]\s*([,}]))/gm;
34+
const LOAD_CHILDREN_REGEX = /loadChildren\s*:(\s*['"`](.*?)['"`]\s*)/gm;
3535
const STRING_REGEX = /(['`"])((?:[^\\]\\\1|.)*?)\1/g;
3636

3737
const JS_REGEX = /\.html$/;
@@ -454,4 +454,4 @@ export class AngularTsCompiler {
454454
code = replaceAll(code, 'AppModule', 'AppModuleNgFactory');
455455
return code;
456456
}
457-
}
457+
}

0 commit comments

Comments
 (0)