Skip to content
New issue

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

fix: accept catalog paths without ending slash #812

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

semoal
Copy link
Contributor

@semoal semoal commented Nov 2, 2020

Closes #809
Added mark: true to node-glob because internally node-glob needs an slash at the end, will be the same of running normalizeRelativePaths to exclude array

I want to (if you are agree of course) migrate node-glob to fdir that is significantly more faster, will work on it with some benchmarks this week 👍🏻

@vercel
Copy link

vercel bot commented Nov 2, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/lingui-js/js-lingui/ahszchsqz
✅ Preview: https://js-lingui-git-fix-trailing-slash.lingui-js.now.sh

@tricoder42
Copy link
Contributor

Looks good!

Honestly, I don't need to see a benchmark. If you want to refactor it and you know that it's faster, then it's fine.

@tricoder42 tricoder42 merged commit 5d39586 into lingui:main Nov 2, 2020
@semoal semoal deleted the fix-trailing-slash branch November 2, 2020 17:12
ThiefMaster added a commit to ThiefMaster/js-lingui that referenced this pull request Nov 2, 2020
The missing `mockFs.restore()` in lingui#812 broke snapshot tests rather
badly. Existing tests did not fail, but no new snapshots were written,
and every test run created new ones (in some temp location).
ThiefMaster added a commit to ThiefMaster/js-lingui that referenced this pull request Nov 2, 2020
The missing `mockFs.restore()` in lingui#812 broke snapshot tests rather
badly. Existing tests did not fail, but no new snapshots were written,
and every test run created new ones (in some temp location).
@ThiefMaster ThiefMaster mentioned this pull request Nov 2, 2020
tricoder42 pushed a commit that referenced this pull request Nov 2, 2020
The missing `mockFs.restore()` in #812 broke snapshot tests rather
badly. Existing tests did not fail, but no new snapshots were written,
and every test run created new ones (in some temp location).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept catalog paths without ending slash
2 participants