From db45914d2cacea7a749c3a271df876c56f7eeadb Mon Sep 17 00:00:00 2001 From: Laurent Payot Date: Mon, 4 Nov 2024 05:29:59 +0100 Subject: [PATCH] Removed String.startsWith !FABLE_COMPILER condition (#611) * Removed String.startsWith FABLE_COMPILER condition * Fable updated to 4.23.0 --- .config/dotnet-tools.json | 2 +- src/FSharpPlus/Extensions/String.fs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 824d99e3e..681a9e801 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "fable": { - "version": "4.5.0", + "version": "4.23.0", "commands": [ "fable" ] diff --git a/src/FSharpPlus/Extensions/String.fs b/src/FSharpPlus/Extensions/String.fs index 9fbce7015..270711026 100644 --- a/src/FSharpPlus/Extensions/String.fs +++ b/src/FSharpPlus/Extensions/String.fs @@ -42,15 +42,12 @@ module String = source.Contains subString - #if !FABLE_COMPILER - /// Does the source string start with the given subString? -- function wrapper for String.StartsWith method using InvariantCulture. let startsWith (subString: string) (source: string) = raiseIfNull (nameof subString) subString raiseIfNull (nameof source) source source.StartsWith (subString, false, CultureInfo.InvariantCulture) - #endif /// Does the source string end with the given subString? -- function wrapper for String.EndsWith method using InvariantCulture. let endsWith subString (source: string) =