Open
Description
Describe the bug
CRLF 文件\r\n 无法命中 /['"]?([^\s'"]+)['"]?\s*:\s*(.+?)[,;\n]/g 表达式,导致我的components.d.ts文件运行dev时原有的内容被清空了剩下少量的组件
Reproduction
...
System Info
System:
OS: Windows 10 10.0.18363
CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
Memory: 6.64 GB / 31.93 GB
Binaries:
Node: 16.18.1 - ~\AppData\Local\Volta\tools\image\node\16.18.1\node.EXE
npm: 8.19.2 - ~\AppData\Local\Volta\tools\image\npm\8.19.2\bin\npm.CMD
pnpm: 8.14.0 - C:\Program Files\Volta\pnpm.EXE
Browsers:
Edge: Spartan (44.18362.449.0)
Internet Explorer: 11.0.18362.1
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Metadata
Metadata
Assignees
Labels
No labels