Skip to content
Permalink
Browse files
minor fix
  • Loading branch information
jamesgeorge007 committed Aug 11, 2019
1 parent 4f003c2 commit aed5cce4f569b4d67432145fad9c400b4a54d51a
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/BannerPlugin.js
@@ -93,9 +93,10 @@ class BannerPlugin {

const lastSlashIndex = filename.lastIndexOf("/");

const basename = lastSlashIndex
? filename
: filename.substr(lastSlashIndex + 1);
const basename =
lastSlashIndex === -1
? filename
: filename.substr(lastSlashIndex + 1);

const data = {
hash,

0 comments on commit aed5cce

Please sign in to comment.