Skip to content

Commit

Permalink
Removed String.startsWith FABLE_COMPILER condition
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentpayot committed Oct 29, 2024
1 parent a4819fc commit 9e35cde
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/FSharpPlus/Extensions/String.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down

0 comments on commit 9e35cde

Please sign in to comment.