Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 736 Bytes

File metadata and controls

25 lines (15 loc) · 736 Bytes

Normalize space

Normalize space

Overview

Normalizes whitespace in a string. Trims leading and trailing whitespace and replaces sequences of internal whitespace characters (spaces, tabs, newlines) with a single space.

Parameters

1. sourceString (TEXT)

  • Label: Source string
  • Description: The input string whose whitespace will be normalized.
  • Required: Yes
  • Default: None
  • Constraints: None

Output

Returns a STRING containing the input with all whitespace normalized to single spaces and no leading or trailing whitespace.

Exceptions

Throws BotCommandException on invalid input or internal failure.