diff --git a/lib/create-stringify.js b/lib/create-stringify.js index e3d557d..d6ffaa2 100644 --- a/lib/create-stringify.js +++ b/lib/create-stringify.js @@ -19,7 +19,8 @@ function stringify(entity, delims) { } const modObj = entity.mod; - const modName = (typeof modObj === 'string' ? modObj : modObj && modObj.name) || entity.modName; + const modName = (typeof modObj === 'string' ? modObj : modObj && modObj.name) + || entity.hasOwnProperty('modName') && entity.modName; if (modName) { const hasModVal = modObj && modObj.hasOwnProperty('val') || entity.hasOwnProperty('modVal');