From 0939027a039a94e5c4624fa7716f7e6b94eb434a Mon Sep 17 00:00:00 2001 From: progfay <19568747+progfay@users.noreply.github.com> Date: Sun, 23 Nov 2025 19:45:50 +0900 Subject: [PATCH] get first char with `string.prototype.charAt` --- src/block/node/CommandLineNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/node/CommandLineNode.ts b/src/block/node/CommandLineNode.ts index 26f4684a..c34a76d9 100644 --- a/src/block/node/CommandLineNode.ts +++ b/src/block/node/CommandLineNode.ts @@ -14,7 +14,7 @@ const createCommandLineNode: NodeCreator = ( return createPlainNode(raw); } - const symbol = raw[0] ?? ""; + const symbol = raw.charAt(0); const text = raw.substring(2); return [