diff --git a/src/CommonToken.ts b/src/CommonToken.ts index 709021e..48259ec 100644 --- a/src/CommonToken.ts +++ b/src/CommonToken.ts @@ -192,7 +192,7 @@ export class CommonToken implements WritableToken { } public get text(): string | undefined { - if (this.#text) { + if (this.#text !== undefined) { return this.#text; }