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

use posix true to force windows to use / as path separator #82

Merged
merged 1 commit into from
May 6, 2023

Conversation

fordkilleen
Copy link

@fordkilleen fordkilleen commented May 5, 2023

This fixes issue #83

Issue:
Since version 5.0.0 of this plugin, the regex used to get the language from the json files to then create the strings.xml files was not working. This was due to the update of the glob dependency (now 10.2.1) which has had some changes regarding forward and back slashes since the previously used version (7.2.0).

Fix:
This broken regex issue (which causes this plugin to not work at all on Windows) is easily resolved by using a newly added glob option posix: true, which forces it to return / delimited paths on Windows instead of \, which matches the expected regex already in the repo.

this fixes the regex issue in recent versions of this plugin where the match fails due to the separator being a \ on Windows
@rodrigograca31 rodrigograca31 merged commit 7d57fec into kelvinhokk:master May 6, 2023
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.

2 participants