Skip to content

Commit 8daeaab

Browse files
authored
Fix drop mime type wildcard regexp (microsoft#180883)
For microsoft#180878
1 parent ab6ba2e commit 8daeaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/base/common/dataTransfer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class VSDataTransfer {
8585
}
8686

8787
// Wildcard, such as `image/*`
88-
const wildcard = this.toKey(mimeTypeGlob).match(/^([a-z]+)$\/([a-z]+|\*)/i);
88+
const wildcard = this.toKey(mimeTypeGlob).match(/^([a-z]+)\/([a-z]+|\*)$/i);
8989
if (!wildcard) {
9090
return false;
9191
}

0 commit comments

Comments
 (0)