Skip to content

Commit

Permalink
#if not FABLE_COMPILER_3
Browse files Browse the repository at this point in the history
  • Loading branch information
wallymathieu committed Nov 12, 2024
1 parent 99e5f5a commit bee0c60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FSharpPlus/Extensions/String.fs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module String =

source.Contains subString

#if !FABLE_COMPILER_3
/// Does the source string start with the given subString? -- function wrapper for String.StartsWith method using InvariantCulture.
let startsWith (subString: string) (source: string) =
#if !NET45
Expand All @@ -60,6 +61,7 @@ module String =
#endif

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 bee0c60

Please sign in to comment.