Skip to content

Conversation

@fangyinc
Copy link

Description

Fixed a bug in ObjectIdentifier.of() method where delimiters containing regex special characters (like .) were not handled correctly.

Changes

  • Wrapped the delimiter parameter with Pattern.quote() in the split() call
  • This ensures special regex characters are treated as literal strings

Issue

When using "." as delimiter, split() would treat it as a regex pattern (matching any character) instead of a literal dot, causing incorrect splitting behavior.

Example

Before: "db.tb".split(".")[]
After: "db.tb".split(Pattern.quote("."))["db", "tb"]

@github-actions github-actions bot added bug Something isn't working java Java features labels Oct 29, 2025
@fangyinc
Copy link
Author

fangyinc commented Oct 29, 2025

Hi @jackye1995 @jackye1995 , please review my codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java Java features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant