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
{{ message }}
This repository was archived by the owner on Jan 8, 2025. It is now read-only.
"has a transformed tab stop without a corresponding ordinary tab stop": {
273
273
prefix: 't15',
274
-
body: "${1/(.)/\\u$1/} & $2"
274
+
body: "${1/(.)/\\u$1/g} & $2"
275
275
},
276
276
"has a transformed tab stop that occurs before the corresponding ordinary tab stop": {
277
277
prefix: 't16',
278
-
body: "& ${1/(.)/\\u$1/} & ${1:q}"
278
+
body: "& ${1/(.)/\\u$1/g} & ${1:q}"
279
279
},
280
280
"has a placeholder that mirrors another tab stop's content": {
281
281
prefix: 't17',
282
282
body: "$4console.${3:log}('${2:uh $1}', $1);$0"
283
283
},
284
284
"has a transformed tab stop such that it is possible to move the cursor between the ordinary tab stop and its transformed version without an intermediate step": {
285
285
prefix: 't18',
286
-
body: '// $1\n// ${1/./=/}'
286
+
body: '// $1\n// ${1/./=/g}'
287
287
},
288
288
"has two tab stops adjacent to one another": {
289
289
prefix: 't19',
@@ -292,6 +292,14 @@ third tabstop $3\
292
292
"has several adjacent tab stops, one of which has a placeholder with reference to another tab stop at its edge": {
293
293
prefix: 't20',
294
294
body: '${1:foo}${2:bar}${3:baz $1}$4'
295
+
},
296
+
"banner without global flag": {
297
+
prefix: "bannerWrong",
298
+
body: "// $1\n// ${1/./=/}"
299
+
},
300
+
"banner with globalFlag": {
301
+
prefix: "bannerCorrect",
302
+
body: "// $1\n// ${1/./=/g}"
295
303
}
296
304
}
297
305
});
@@ -902,6 +910,28 @@ foo\
902
910
});
903
911
});
904
912
913
+
describe("when the snippet contains a transformation without a global flag",()=>{
914
+
it("should transform only the first character",()=>{
0 commit comments