StringExpander
Stentor API Reference / stentor-utils/src / StringExpander
Class: StringExpander
Defined in: packages/stentor-utils/src/string/StringExpander.ts:42
Expands strings when the pattern {option0|option1} is found within the string.
If either ${VAR} or the alexa-utterances {-|VAR} is within the string, it preserved and converted to ${} by default.
Constructorsβ
Constructorβ
new StringExpander(
props?):StringExpander
Defined in: packages/stentor-utils/src/string/StringExpander.ts:46
Parametersβ
props?β
Returnsβ
StringExpander
Methodsβ
expand()β
expand(
str):string[]
Defined in: packages/stentor-utils/src/string/StringExpander.ts:55
Parametersβ
strβ
string
Returnsβ
string[]