Skip to content

Commit

Permalink
Fixes #72 Unexpected behaviour when token text has zero length
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Lischke <[email protected]>
  • Loading branch information
mike-lischke committed Sep 15, 2024
1 parent 4eec0b9 commit 5875e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommonToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class CommonToken implements WritableToken {
}

public get text(): string | undefined {
if (this.#text) {
if (this.#text !== undefined) {
return this.#text;
}

Expand Down

0 comments on commit 5875e44

Please sign in to comment.