Skip to content

Commit ef235b0

Browse files
committed
Allow uppercased name
1 parent cfa8a39 commit ef235b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeSnippetService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class CodeSnippetService {
165165

166166
duplicateNameExists(newName: string): void {
167167
for (const snippet of this.codeSnippetList) {
168-
if (snippet.name === newName) {
168+
if (snippet.name.toLowerCase() === newName.toLowerCase()) {
169169
throw Error('Duplicate Name of Code Snippet');
170170
}
171171
}

0 commit comments

Comments
 (0)