You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "LinShunKang (GitHub)" <gi...@apache.org> on 2019/12/11 07:47:42 UTC
[GitHub] [dubbo] LinShunKang opened issue #5458:
StringUtils.split(String, char) result is not expect
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.4
* Operating System version: Darwin Kernel Version 18.7.0
* Java version: 1.8.0_181-b13)
### Steps to reproduce this issue
1. invoke `StringUtils.split("d,1,2,4", 'a')`
2. invoke `"d,1,2,4".split("a")`
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
`StringUtils.split("d,1,2,4", 'a')` should return `["d,1,2,4"]` just like `"d,1,2,4".split("a")`.
### Actual Result
empty array.
[ Full content available at: https://github.com/apache/dubbo/issues/5458 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org