Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引号与句号相连时,执行会报错 #163

Open
Happier-X opened this issue Oct 24, 2024 · 0 comments
Open

引号与句号相连时,执行会报错 #163

Happier-X opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Happier-X
Copy link

Happier-X commented Oct 24, 2024

当我校验如下语句时,控制台报错。

'测试'.
"测试".
“测试”.
‘测试’.

报错信息如下。

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/rules/case-abbrs.js:33:75
    at Array.filter (<anonymous>)
    at matchAbbr (file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/rules/case-abbrs.js:33:14)
    at file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/rules/case-abbrs.js:72:13
    at travel (file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/parser/travel.js:4:9)
    at file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/run.js:61:13
    at Array.forEach (<anonymous>)
    at file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/run.js:60:22
    at Array.map (<anonymous>)
    at lint (file:///C:/Users/zhf52/AppData/Roaming/fnm/node-versions/v20.18.0/installation/node_modules/zhlint/lib/run.js:51:48)

image

@Happier-X Happier-X changed the title 中文引号与英文句号相连时,执行会报错 引号与句号相连时,执行会报错 Oct 24, 2024
@Jinjiang Jinjiang added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants