Bracketeer icon indicating copy to clipboard operation
Bracketeer copied to clipboard

[Bug] When the string contains `@`, Bracketeer warns "No quotes to modify found."

Open wenfangdu opened this issue 4 years ago • 1 comments

Repro case:

{
  "@foo": "foo"
}

Use the command bracketeer.selectQuotesContent to select @foo, Bracketeer will warn "No quotes to modify found."

Quite often npm package names start with @, e.g.

{
  "@vue/cli-plugin-babel": "~4.5.13",
  "@vue/cli-plugin-eslint": "~4.5.13",
  "@vue/cli-plugin-router": "~4.5.13",
  "@vue/cli-plugin-vuex": "~4.5.13",
  "@vue/cli-service": "~4.5.13",
  "@vue/compiler-sfc": "^3.1.5",
  "@vue/eslint-config-prettier": "^6.0.0"
}

It's currently impossible to select them with Bracketeer.

wenfangdu avatar Aug 12 '21 13:08 wenfangdu

Hi, thanks for reporting the bug, I quickly checked it and you are right, it doesn't work properly. Unfortunately due to limited time I'm unable to tell when I will be able to fix it. But feel free to submit the PR with fix, if you want to.

Pustelto avatar Aug 13 '21 06:08 Pustelto