-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat(urn) Add validator to reject URNs which contain the character we plan to u… #7859
Conversation
…se as a delimiter
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.
nice! thanks for taking care of this
@@ -170,6 +170,9 @@ public static class IngestProposalResult { | |||
|
|||
private static final int URN_NUM_BYTES_LIMIT = 512; | |||
|
|||
// TODO(iprentic): Move this to a common utils location once used in other places | |||
private static final String DELIMITER_SEPARATOR = "␟"; |
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.
Might be less visually weird to have this as the character code rather than a blank looking String in case someone edits this without understanding it.
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 like the way it is actually
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, if comment doesn't make sense or you disagree don't consider it blocking :)
… plan to u… (#7859) Co-authored-by: Indy Prentice <[email protected]>
…se as a delimiter
Checklist