You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
Desktop (please complete the following information):[环境]
OS: Windows
Visual Studio Code
Version: 0.1.8
Additional context[补充]
None
The text was updated successfully, but these errors were encountered:
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:
`
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.
Desktop (please complete the following information):[环境]
Additional context[补充]
None
The text was updated successfully, but these errors were encountered: