-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ArrayIndexOutOfBoundsException when skipping allowed string value…
… with escaped escape character (#92) * Add a test case with ArrayIndexOutOfBoundsException * Refactored the escape characters handling to fix ArrayOutOfBounds * Move counting of non-visible characters inside the utility function, refactor logic to reuse value skipping inside masking as well * Simplified the counting, added more tests to show how jackson would parse the object * Change skip to stepOver, added some docs and renamed a variable --------- Co-authored-by: breus <b.blaauwendraad@gmail.com>
- Loading branch information
1 parent
da82ad7
commit 5b13781
Showing
12 changed files
with
332 additions
and
263 deletions.
There are no files selected for viewing
218 changes: 93 additions & 125 deletions
218
src/main/java/dev/blaauwendraad/masker/json/KeyContainsMasker.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 0 additions & 97 deletions
97
src/main/java/dev/blaauwendraad/masker/json/util/ValueMaskingUtil.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.