Skip to content

Commit 0939027

Browse files
committed
get first char with string.prototype.charAt
1 parent 9ca0580 commit 0939027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block/node/CommandLineNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const createCommandLineNode: NodeCreator<CommandLineNode | PlainNode> = (
1414
return createPlainNode(raw);
1515
}
1616

17-
const symbol = raw[0] ?? "";
17+
const symbol = raw.charAt(0);
1818
const text = raw.substring(2);
1919

2020
return [

0 commit comments

Comments
 (0)