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

result not right. #17

Closed
RocherKong opened this issue May 15, 2019 · 1 comment
Closed

result not right. #17

RocherKong opened this issue May 15, 2019 · 1 comment

Comments

@RocherKong
Copy link

private IllegalWordsSearch illegalWordsSearch = null;
illegalWordsSearch = new IllegalWordsSearch();
private string s = "中国|zg人|abc";
illegalWordsSearch.SetKeywords(s.Split('|'));
illegalWordsSearch.Replace("我是中美国人厉害中国完美abcddb好的", '*');

then result is:我是中美国人厉害************
expected result is:我是中美国人厉害完美*ddb好的

toolgood added a commit that referenced this issue Jun 6, 2019
@toolgood
Copy link
Owner

toolgood commented Jun 6, 2019

谢谢。这个问题已解决。

@toolgood toolgood closed this as completed Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants