templateUrl Regex fails to capture when comment follows
See original GitHub issueIn the following legitimate code snippet:
@Component({
selector: "my-app",
templateUrl: './app.component.html'
//styleUrls: ["app.component.css"]
})
or this:
@Component({
selector: "my-app",
templateUrl: './app.component.html' //Very important comment
})
the regular expression templateUrlRegex
in index.js fails to capture, leaving the URL in the file to be treated as a separate html.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:11
Top Results From Across the Web
How can I match spaces with a regexp in Bash? - Stack Overflow
Get rid of the square brackets in the regular expression: regexp="templateUrl:\s*'". With the square brackets present, the \s inside gets ...
Read more >angular2-template-loader - Bountysource
templateUrl Regex fails to capture when comment follows $ 0 ... Created 5 years ago in TheLarkInn/angular2-template-loader with 11 comments. In the following ......
Read more >Regex gives error instead of matching · Issue #180 - GitHub
E.g. if I run the following code use logos::Logos; ... ... any C-style block comment, and indeed it does seem to match such...
Read more >Highlight Text Within a String Using Angular and Regular ...
We're going to see how to highlight text within HTML using a query string and simple replace logic. The logic behind what we're...
Read more >Email Validation in Angular: Full Guide - Mailtrap
To assist us in displaying useful validation and error messages to users, ... Here is the regex Angular email validation pattern: "^[a-z0-9.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Version - “angular2-template-loader”: “^0.6.2”,
Probably this also has got related to the fact the templateUrl doesnt work without a comma . I found out this peculiar issue today. This does work —
But This does not
The only difference is the comma after templateUrl: “./home.template.html”
Is also this issue related to #50 ?