mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Ignoring URLs when adding line comment onEnter (#239576)
removing urls from this regex
This commit is contained in:
committed by
GitHub
parent
c9948b69ee
commit
1430e1845c
@@ -231,7 +231,7 @@
|
|||||||
// Add // when pressing enter from inside line comment
|
// Add // when pressing enter from inside line comment
|
||||||
{
|
{
|
||||||
"beforeText": {
|
"beforeText": {
|
||||||
"pattern": "\/\/.*"
|
"pattern": "(?<!\\w:)\/\/.*"
|
||||||
},
|
},
|
||||||
"afterText": {
|
"afterText": {
|
||||||
"pattern": "^(?!\\s*$).+"
|
"pattern": "^(?!\\s*$).+"
|
||||||
|
|||||||
@@ -249,7 +249,7 @@
|
|||||||
// Add // when pressing enter from inside line comment
|
// Add // when pressing enter from inside line comment
|
||||||
{
|
{
|
||||||
"beforeText": {
|
"beforeText": {
|
||||||
"pattern": "\/\/.*"
|
"pattern": "(?<!\\w:)\/\/.*"
|
||||||
},
|
},
|
||||||
"afterText": {
|
"afterText": {
|
||||||
"pattern": "^(?!\\s*$).+"
|
"pattern": "^(?!\\s*$).+"
|
||||||
|
|||||||
Reference in New Issue
Block a user