Skip to content

Commit da12116

Browse files
author
otavio
committed
Fix regex used for Capitalize
1 parent 185bb91 commit da12116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/snippetPlaceholders.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const revertSnippetPlaceholders = (snippetString: string) => {
3636
.replace(new RegExp(/\${2:second}/, 'g'), Placeholders.SecondTab)
3737
.replace(new RegExp(/\${3:third}/, 'g'), Placeholders.ThirdTab)
3838
.replace(
39-
new RegExp(/\${1\/(.*)\/${1:\/capitalize}\/}/, 'g'),
39+
new RegExp(/\${1\/\(\.\*\)\/\${1:\/capitalize}\/}/, 'g'),
4040
Placeholders.Capitalize,
4141
);
4242
};

0 commit comments

Comments
 (0)