-
-
Notifications
You must be signed in to change notification settings - Fork 811
Adding feature to allow for skipping RS control char #633 #1155
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
base: 2.18
Are you sure you want to change the base?
Changes from 1 commit
8d1f411
21170ca
6c446c9
66961b5
aba7df5
303e71e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,8 @@ public class ReaderBasedJsonParser | |
|
||
private final static int FEAT_MASK_ALLOW_JAVA_COMMENTS = Feature.ALLOW_COMMENTS.getMask(); | ||
private final static int FEAT_MASK_ALLOW_YAML_COMMENTS = Feature.ALLOW_YAML_COMMENTS.getMask(); | ||
|
||
private final static int FEAT_MASK_ALLOW_CONTROL_CHAR = Feature.ALLOW_RS_CONTROL_CHAR.getMask(); | ||
|
||
// Latin1 encoding is not supported, but we do use 8-bit subset for | ||
// pre-processing task, to simplify first pass, keep it fast. | ||
|
@@ -2538,8 +2540,8 @@ private final int _skipWSOrEnd() throws IOException | |
_currInputRowStart = _inputPtr; | ||
} else if (i == INT_CR) { | ||
_skipCR(); | ||
} else if (i != INT_TAB) { | ||
_throwInvalidSpace(i); | ||
} else if (i != INT_TAB && ((_features & FEAT_MASK_ALLOW_CONTROL_CHAR) != 0 && i != INT_RS)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think latter There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. |
||
_throwInvalidSpace(i); | ||
} | ||
} | ||
|
||
|
@@ -2558,7 +2560,7 @@ private final int _skipWSOrEnd() throws IOException | |
_currInputRowStart = _inputPtr; | ||
} else if (i == INT_CR) { | ||
_skipCR(); | ||
} else if (i != INT_TAB) { | ||
} else if (i != INT_TAB && ((_features & FEAT_MASK_ALLOW_CONTROL_CHAR) != 0 && i != INT_RS)) { | ||
_throwInvalidSpace(i); | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.