This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Development directory : invalid regex #66
Comments
Hi! Sorry for the late reply. Looking into tweaking that regex, would probably involve switching to: const meteorRoot = process.cwd().replace(/(^\.meteor.*)/g, ''); |
Maybe more something like that : const meteorRoot = process.cwd().replace(/(\W)(\.meteor.*)/g, '$1'); |
Right. Are you able to clone down the package repo locally into your |
Hi, I tested this and it seems to work (it's better than my 1st solution) const reg = new RegExp(path.sep+'\.meteor.*','g');
const meteorRoot = process.cwd().replace(reg, ''); |
Cool! Fancy filing a PR and I can check it out locally too? |
Fixed in #67. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi guys,
I believe I found a bug in the regex which generate the meteor private directory in development mode.
https://github.com/lookback/meteor-emails/blob/master/lib/utils.js#L28
Indeed, I have a folder in my project containing ".meteor" wich is removed by the regex when the current path is generated.
I know that the short answer is to rename my directory, but fixing this will probably save some time to other people in the future 😉
The text was updated successfully, but these errors were encountered: