Skip to content

Commit

Permalink
Fix exact match for flat level (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 authored and alexanderjeurissen committed Jan 8, 2020
1 parent b0e6b1c commit 1fa1d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devicons.py
Expand Up @@ -319,4 +319,4 @@

def devicon(file):
if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '')
return file_node_exact_matches.get(file.relative_path, file_node_extensions.get(file.extension, ''))
return file_node_exact_matches.get(os.path.basename(file.relative_path), file_node_extensions.get(file.extension, ''))

0 comments on commit 1fa1d0f

Please sign in to comment.