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
pub run i18n_extension:getstrings malfunctions if you have comments with single apostrophes (eg don't, it's, 10's) #72
Comments
The Hopefully he can answer you. Thanks. |
@fne00 Can you provide some Dart code that triggers this issue? |
@bauerj Take a Dart App/File that is working and add a comment like this to the code:
|
Indeed, I can confirm your issue. I will push a fix on Monday. |
Hey @fne00, I improved the utility to fix this. Me not catching this error probably means I should write more comments in my code 🤔 |
@bauerj Thanks - That's great. |
The getstrings function seems operate by finding an opening single or double quote, and then looking for the end of the string ... then it looks to see it .i18n (etc) is applied.
This goes wrong if you have unbalanced ' or " characters in the dart file.
This can easily happen if you have comment lines with words like: don't, can't, isn't, it's .
The text was updated successfully, but these errors were encountered: