-
Notifications
You must be signed in to change notification settings - Fork 610
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 data url test #2580
fix data url test #2580
Conversation
6f1ce16
to
4fa8a62
Compare
if (leading) { | ||
while (j > i && isASCIIWhitespace(str.charCodeAt(i))) --i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so unless str.length
was 0 j > i
would always be true... and we're decrementing from i, which means if isASCIIWhitespace(...) was true, i
would be negative? Not sure why I didn't realize this before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also using i
and j
instead of lead
and trail
shouldn't have landed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
fixup fixup
4fa8a62
to
61803bc
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2580 +/- ##
==========================================
- Coverage 85.54% 84.71% -0.84%
==========================================
Files 76 80 +4
Lines 6858 7241 +383
==========================================
+ Hits 5867 6134 +267
- Misses 991 1107 +116 ☔ View full report in Codecov by Sentry. |
Fixes #2579
fix was easier than I expected, I just reverted the changes here for the most part.