We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/runk/connect-jade-static/blob/master/index.js#L54
I think it would make sense to perform a simple string operation here:
var urlpath = parsed.pathname.replace(/html$/, 'jade').replace(opts.baseUrl, '');
As far as I understood - the logic is to replace the string from the end. It can be achieved in more efficient ways :) I'll create a PR later
The text was updated successfully, but these errors were encountered:
Sure, all improvements are welcome 👍
Sorry, something went wrong.
I've updated my PR #6
No branches or pull requests
https://github.com/runk/connect-jade-static/blob/master/index.js#L54
I think it would make sense to perform a simple string operation here:
var urlpath = parsed.pathname.replace(/html$/, 'jade').replace(opts.baseUrl, '');
As far as I understood - the logic is to replace the string from the end. It can be achieved in more efficient ways :) I'll create a PR later
The text was updated successfully, but these errors were encountered: