Skip to content
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

common.utils.StringUtils.java startsWith #10935

Closed
forachange opened this issue Aug 9, 2023 · 0 comments
Closed

common.utils.StringUtils.java startsWith #10935

forachange opened this issue Aug 9, 2023 · 0 comments
Labels
kind/bug Category issues or prs related to bug.
Milestone

Comments

@forachange
Copy link
Contributor

Describe the bug

`private static boolean startsWith(final CharSequence str, final CharSequence prefix, final boolean ignoreCase){
...

if (ignoreCase) {
    String lowerCaseStr = str.toString().toLowerCase();
    **String lowerCasePrefix = str.toString().toLowerCase();**
    return lowerCaseStr.startsWith(lowerCasePrefix);
}

...

}`

String lowerCasePrefix = prefix.toString().toLowerCase();

Desktop (please complete the following information):

  • Version [nacos-client 2.2.0]
@KomachiSion KomachiSion added the kind/bug Category issues or prs related to bug. label Aug 10, 2023
@KomachiSion KomachiSion added this to the 2.3.0 milestone Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

2 participants