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

Fix defect for matches when input is null #607

Merged
merged 8 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ public void test_14_cl3_100_arithmetic() {
doSingleModelTest("1.4", "0100-arithmetic");
}

@Test
public void test_14_cl3_1111_feel_matches_function() {
doSingleModelTest("1.4", "1111-feel-matches-function");
}

@Test
public void test_14_cl3_1145_feel_context_function() {
doSingleModelTest("1.4", "1145-feel-context-function");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public String replace(String input, String pattern, String replacement, String f
// See https://www.w3.org/TR/xquery-operators/#func-matches
public Boolean matches(String input, String pattern, String flags) throws Exception {
if (input == null || pattern == null) {
return false;
return null;
}
if (flags == null) {
flags = "";
Expand Down
Loading
Loading