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

Formatting fails from the point a regex pattern is present in the Vuejs code #27

Open
kishankarun opened this issue Aug 20, 2020 · 1 comment

Comments

@kishankarun
Copy link

kishankarun commented Aug 20, 2020

Describe the bug [描述]
Formatting fails from the point a regex pattern is present in the Vuejs code file

To Reproduce[复现]
Steps to reproduce the behavior:

  1. Add the following code in the .vue file in the methods section
    `
    isUrlValid(link, pattern) {
    var expression = "/^(?:http(s)?://)?[\w.-]+(?:.[\w.-]+)+[\w-._~:/?#[]@!$&'()*+,;=.]+$/g";

},
`
2. Format the file (using the shortcut key Ctrl+Alt+P)

Expected behavior[预期]
From that line where the regex expression is present, the formatting fails and appends the script part once again

Screenshots[截图]
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):[环境]

  • OS: Windows
  • Visual Studio Code
  • Version: 0.1.8

Additional context[补充]
None

@kishankarun
Copy link
Author

No updates for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant