Skip to content

stripQuotes

function stripQuotes(value): string;

Defined in: packages/engine/src/utilities/Strings.ts:10

Strips a single layer of matching double quotes from a string, if present. Returns the input unchanged if it isn’t fully wrapped in quotes.

Was needed for STRING token values, which the lexer used to emit with their surrounding "..." quotes still attached. tokenizeString() now strips them when it builds the token, so on that path this is a no-op kept as a defence against text arriving from somewhere else already quoted.

ParameterType
valuestring

string