We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 857972e + 79a3ae2 commit 38953b7Copy full SHA for 38953b7
packages/parser/src/scriptParser/scriptParser.ts
@@ -37,10 +37,10 @@ export const scriptParser = (
37
38
// 去分号
39
const commentSplit = sentenceRaw.split(/(?<!\\);/);
40
- let newSentenceRaw = commentSplit[0].trim();
+ let newSentenceRaw = commentSplit[0];
41
newSentenceRaw = newSentenceRaw.replaceAll('\\;',';');
42
const sentenceComment = commentSplit[1] ?? '';
43
- if (newSentenceRaw === '') {
+ if (newSentenceRaw.trim() === '') {
44
// 注释提前返回
45
return {
46
command: commandType.comment, // 语句类型
0 commit comments