Skip to content

extractImports 函数CRLF文件无法提取 #847

Open
@289420843

Description

@289420843

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy