MCPcopy Create free account
hub / github.com/Effect-TS/effect / toWellFormed

Function toWellFormed

packages/effect/src/String.ts:917–919  ·  view source on GitHub ↗
(self: string)

Source from the content-addressed store, hash-verified

915 * @since 4.1.5
916 */
917export const toWellFormed = (self: string): string =>
918 (self as WellFormedNative).toWellFormed?.() ??
919 (isWellFormed(self) ? self : self.replace(loneSurrogates, "\uFFFD"))
920
921/**
922 * Pads the string from the end with a given fill string to a specified length.

Callers 5

textActivityFunction · 0.90
buttonActionFunction · 0.90
dialogActionFunction · 0.90
linkActionFunction · 0.90
blocksFunction · 0.90

Calls 2

isWellFormedFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected