Commit 975adf70 authored by zhuyue's avatar zhuyue Committed by GitHub

Merge pull request #2 from zhuyuesut/zhuyuesut-fixbug

Update RegexSelectorTest.java
parents 39c3c2f9 c80f25ed
......@@ -25,8 +25,8 @@ public class RegexSelectorTest {
@Test
public void testRegexWithZeroWidthAssertions() {
String regex = "^.*(?=\\?)";
String source = "hello world?xxxx";
String regex = "^.*(?=\\?)(?!\\?yy)";
String source = "hello world?xx?yy";
RegexSelector regexSelector = new RegexSelector(regex);
String select = regexSelector.select(source);
Assertions.assertThat(select).isEqualTo("hello world");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment