Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

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