diff --git a/manifest.json b/manifest.json index 9eacbe6..27bdb2a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.3.4", + "version": "3.3.5", "manifest_version": 2, "default_locale": "en", "name": "__MSG_appName__", diff --git a/src/gas-hub.js b/src/gas-hub.js index 6afe45e..d9eed11 100644 --- a/src/gas-hub.js +++ b/src/gas-hub.js @@ -289,10 +289,10 @@ function prepareCode() { .then((data) => { const re = new RegExp(`\\${context.config.filetype}$`); const files = $('.item').toArray().reduce((hash, e) => { - if (context.config.manifestEnabled && e.innerText === 'appsscript.json') { + if (context.config.manifestEnabled && e.innerText.trim() === 'appsscript.json') { hash['appsscript'] = 'appsscript.json'; } - const match = e.innerText.match(/(.*?)\.(gs|html)$/); + const match = e.innerText.trim().match(/(.*?)\.(gs|html)$/); if (!match || !match[1] || !match[2]) return hash; hash[match[1]] = match[0]; return hash;