From 243c7510fa2f4e26b6df9592d90b30b32dd1e2d5 Mon Sep 17 00:00:00 2001 From: jorgenherje Date: Thu, 26 Sep 2024 11:06:02 +0200 Subject: [PATCH] Adjust comments --- .../packages/well-completions-plot/src/components/WellsPlot.tsx | 1 - .../well-completions-plot/src/utility-lib/stringUtils.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/packages/well-completions-plot/src/components/WellsPlot.tsx b/typescript/packages/well-completions-plot/src/components/WellsPlot.tsx index 4b7141ec8..653727bd1 100644 --- a/typescript/packages/well-completions-plot/src/components/WellsPlot.tsx +++ b/typescript/packages/well-completions-plot/src/components/WellsPlot.tsx @@ -22,7 +22,6 @@ const WellTooltipContent: React.FC = ( return ( - {/* earliest completion date */}
diff --git a/typescript/packages/well-completions-plot/src/utility-lib/stringUtils.ts b/typescript/packages/well-completions-plot/src/utility-lib/stringUtils.ts index 0b4a50f0f..408829746 100644 --- a/typescript/packages/well-completions-plot/src/utility-lib/stringUtils.ts +++ b/typescript/packages/well-completions-plot/src/utility-lib/stringUtils.ts @@ -27,6 +27,7 @@ export const createWellNameRegexMatcher = ( const prevChar = index === 0 ? undefined : pattern.charAt(index - 1); if (prevChar === undefined || !SPECIAL_ESCAPE.includes(prevChar)) { + // Add a dot before each "*" and "?" unless it's preceded by a dot already or a closing brace if (SPECIAL_CHARACTERS.includes(character)) { processed.push("."); if (character === "?") continue; // '?' is replaced with '.'