fix: CSS selectors for listing icons (#3277)

This commit is contained in:
Andrés Bono
2024-06-08 21:54:06 +02:00
committed by GitHub
parent 6ca3d5a573
commit 2a90cdfdaf
2 changed files with 10 additions and 14 deletions

View File

@@ -275,12 +275,10 @@ const open = () => {
};
const getExtension = (fileName: string): string => {
const lastDotIndex = fileName.lastIndexOf('.');
const lastDotIndex = fileName.lastIndexOf(".");
if (lastDotIndex === -1) {
return fileName;
}
return fileName.substring(lastDotIndex );
return fileName.substring(lastDotIndex);
};
</script>