Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.forterulesengine.io/llms.txt

Use this file to discover all available pages before exploring further.

cleanString(str): string
Defined in: src/parsing/parsing-utilities.ts:679 Cleans a given string by removing line breaks, reducing multiple spaces to a single space, and trimming leading and trailing whitespace.

Parameters

ParameterTypeDescription
strstringThe input string to be cleaned.

Returns

string The cleaned string with normalized whitespace.