-
Notifications
You must be signed in to change notification settings - Fork 5
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 bookmark integer overflow and Notes UI bug #165
Fix bookmark integer overflow and Notes UI bug #165
Conversation
Codecov Report
@@ Coverage Diff @@
## master #165 +/- ##
============================================
+ Coverage 71.32% 71.69% +0.37%
Complexity 745 745
============================================
Files 127 127
Lines 2420 2406 -14
Branches 271 269 -2
============================================
- Hits 1726 1725 -1
+ Misses 596 582 -14
- Partials 98 99 +1
Continue to review full report at Codecov.
|
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!
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 :)
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
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 other than the Big Integer part that I'm not too sure about
@@ -74,7 +75,7 @@ public static boolean isNonZeroUnsignedInteger(String s) { | |||
*/ | |||
public static String trimLeadingZeroes(String s) { | |||
requireNonNull(s); | |||
int value = Integer.parseInt(s); | |||
BigInteger value = new BigInteger(s); |
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.
I'm not sure if this needs to be here as you mentioned in the PR that you were using the regex solution instead
Closes #163
Added length limit to the regex of the bookmark field to prevent integer overflow.
Wanted to use BigInteger but it would require changing the whole project to use BigInteger so just went with the regex solution.
Closes #162
Allow text to wrap around instead of being truncated into ellipses when the text is too long to be displayed in a single line.
Here's how it looks now with the maximum number of allowable characters for note and note title:
DG changes
Modified the DG for the undo/redo feature to include the new changes I added last week