Skip to content

Commit

Permalink
Removed String.startsWith !FABLE_COMPILER condition (#611)
Browse files Browse the repository at this point in the history
* Removed String.startsWith FABLE_COMPILER condition

* Fable updated to 4.23.0
  • Loading branch information
laurentpayot authored Nov 4, 2024
1 parent 9c203e7 commit db45914
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fable": {
"version": "4.5.0",
"version": "4.23.0",
"commands": [
"fable"
]
Expand Down
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 db45914

Please sign in to comment.