Open Swiftwork opened 7 years ago
This might work, but needs testing with nested config objects that look similar.
/(\.bootstrapModule|\.bootstrapModuleFactory)\((.+|.+, ?[\[\{][\S\s]*[\]\}])?\)/gm
But a better solution would be to loop though and count opening / closing brackets.
can you make a PR and provide a link to regex101.com with examples
Line index.js#L3 will not match multiline compilerConfig.
will match
Could you update the RegExp to reflect the angular documentation?