-
Notifications
You must be signed in to change notification settings - Fork 213
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 the parsing error of Issue #2029 #2052
Conversation
I changed the replace from , -> . to , -> nothing, because the stat got interpreted as a float and in a later step rounded down to 1
[frontend] [Tue Apr 30 15:06:53 UTC 2024] - Deployed 0927c02 to https://genshin-optimizer-prs.github.io/pr/2052/frontend (Takes 3-5 minutes after this completes to be available) [frontend] [Tue Apr 30 19:04:44 UTC 2024] - Deployed fccd490 to https://genshin-optimizer-prs.github.io/pr/2052/frontend (Takes 3-5 minutes after this completes to be available) [frontend] [Wed May 1 05:09:58 UTC 2024] - Deployed 26c89fc to https://genshin-optimizer-prs.github.io/pr/2052/frontend (Takes 3-5 minutes after this completes to be available) [Wed May 1 05:37:32 UTC 2024] - Deleted deployment |
I changed the code, so that the `,` or `.` only gets deleted if they are followed by 3 digits. Since artifacts only have a precision of one digit this method should not delete any `,` or `.` used for floating point seperation.
I changed the code, so that the `,` or `.` only gets deleted if they are followed by 3 digits. Since artifacts only have a precision of one digit this method should not delete any `,` or `.` used for floating point seperation.
Also need to format using |
Add forgotten `\` to escape the `.` of the regex Co-authored-by: frzyc <frzyc@users.noreply.github.com>
the regex caught .000 but also everything abouve like .00000 and now it olny catches, if the `.` is followed by 3 `0`s. I also ran `yarn run mini-ci` this time.
LGTM, thanks for the fix. |
Describe your changes
I changed the replace from , -> . to , -> nothing, because the stat got interpreted as a float and in a later step rounded down to 1
Issue or discord link
Testing/validation
Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)
yarn run mini-ci
locally to validate format and lint.