Ignoring URLs when adding line comment onEnter (#239576)

removing urls from this regex
This commit is contained in:
Aiday Marlen Kyzy
2025-02-04 10:38:17 +01:00
committed by GitHub
parent c9948b69ee
commit 1430e1845c
2 changed files with 2 additions and 2 deletions

View File

@@ -231,7 +231,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
"pattern": "(?<!\\w:)\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"

View File

@@ -249,7 +249,7 @@
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
"pattern": "(?<!\\w:)\/\/.*"
},
"afterText": {
"pattern": "^(?!\\s*$).+"