From 117325b9f821e237104e040c949a1aa06de67cce Mon Sep 17 00:00:00 2001 From: Miroslav Pokorny Date: Sat, 2 Nov 2024 20:37:56 +1100 Subject: [PATCH] https://github.com/mP1/walkingkooka/pull/2822 GlobPattern.parse escape char parameter removed - https://github.com/mP1/walkingkooka/pull/2822 - GlobPattern.parse escape char parameter removed --- .../SpreadsheetExpressionFunctionBooleanTextMatch.java | 3 +-- .../SpreadsheetExpressionFunctionNumberIfPredicate.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionBooleanTextMatch.java b/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionBooleanTextMatch.java index e7d561b..d9f2aa5 100644 --- a/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionBooleanTextMatch.java +++ b/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionBooleanTextMatch.java @@ -52,8 +52,7 @@ public Boolean apply(final List parameters, return Predicates.globPatterns( pattern, - CaseSensitivity.INSENSITIVE, - '\\' + CaseSensitivity.INSENSITIVE ).test(text); } diff --git a/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionNumberIfPredicate.java b/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionNumberIfPredicate.java index eacc059..1a2e369 100644 --- a/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionNumberIfPredicate.java +++ b/src/main/java/walkingkooka/spreadsheet/expression/function/SpreadsheetExpressionFunctionNumberIfPredicate.java @@ -159,7 +159,7 @@ private static Predicate criteriaFilter(final String value, private static Predicate equalsString(final String expression, final SpreadsheetExpressionEvaluationContext context) { return (v) -> - CaseSensitivity.SENSITIVE.globPattern(expression, '~') + CaseSensitivity.SENSITIVE.globPattern(expression) .test( context.convertOrFail( context.evaluate(