@@ -55,7 +55,7 @@ export class ModuleManager {
55
55
56
56
private static readTypescriptFile ( filename : string , errors : string [ ] ) : NgModule | Component | Directive | Pipe | Injectable | undefined {
57
57
const fileContents = fs . readFileSync ( filename ) . toString ( ) ;
58
- let regex : RegExp = / @ N g M o d u l e \s * \( \s * ( \{ .+ ?\} ) \s * \) \s * e x p o r t \s + c l a s s \s + ( \w + ) \s + / ims;
58
+ let regex : RegExp = / @ N g M o d u l e \s * \( \s * ( \{ .+ ?\} ) \s * \) . + e x p o r t \s + c l a s s \s + ( \w + ) \s + / ims;
59
59
var match = regex . exec ( fileContents ) ;
60
60
if ( match !== null ) {
61
61
const moduleName = match [ 2 ] ;
@@ -78,7 +78,7 @@ export class ModuleManager {
78
78
return undefined ;
79
79
}
80
80
}
81
- regex = / @ C o m p o n e n t \s * \( \s * ( \{ .+ ?\} ) \s * \) \s * e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
81
+ regex = / @ C o m p o n e n t \s * \( \s * ( \{ .+ ?\} ) \s * \) . + e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
82
82
match = regex . exec ( fileContents ) ;
83
83
if ( match !== null ) {
84
84
const className = match [ 2 ] ;
@@ -87,17 +87,17 @@ export class ModuleManager {
87
87
this . enrichComponent ( component , classBody ) ;
88
88
return component ;
89
89
}
90
- regex = / @ D i r e c t i v e \s * \( .* ?\) \s * e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
90
+ regex = / @ D i r e c t i v e \s * \( .* ?\) . + e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
91
91
const newDirective = this . parseNamedEntity ( Directive , filename , fileContents , regex ) ;
92
92
if ( newDirective !== undefined ) {
93
93
return newDirective ;
94
94
}
95
- regex = / @ P i p e \s * \( .* ?\) \s * e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
95
+ regex = / @ P i p e \s * \( .* ?\) . + e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
96
96
const newPipe = this . parseNamedEntity ( Pipe , filename , fileContents , regex ) ;
97
97
if ( newPipe !== undefined ) {
98
98
return newPipe ;
99
99
}
100
- regex = / @ I n j e c t a b l e \s * \( .* ?\) \s * e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
100
+ regex = / @ I n j e c t a b l e \s * \( .* ?\) . + e x p o r t \s + c l a s s \s + ( \w + ) \s + ( .* ) / ims;
101
101
const newInjectable = this . parseNamedEntity ( Injectable , filename , fileContents , regex ) ;
102
102
if ( newInjectable !== undefined ) {
103
103
return newInjectable ;
0 commit comments