diff --git a/lib/loadMtl.js b/lib/loadMtl.js index a7018e9..bd76c81 100644 --- a/lib/loadMtl.js +++ b/lib/loadMtl.js @@ -85,11 +85,11 @@ function loadMtl(mtlPath, options) { * @returns {String} The clean texture name */ function cleanTextureName (name) { - var re = /-(bm|t|s|o|blendu|blendv|boost|mm|texres|clamp|imfchan|type)/; - if (re.test(name)) { - return name.split(/\s+/).pop(); - } - return name; + var re = /-(bm|t|s|o|blendu|blendv|boost|mm|texres|clamp|imfchan|type)/; + if (re.test(name)) { + return name.split(/\s+/).pop(); + } + return name; } function parseLine(line) {