Use the correct name in imports

This commit is contained in:
Andreas Hocevar
2017-09-12 15:33:23 +02:00
parent d0e9fd68ff
commit e876003684
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ glob('src/**/*.js', {}, function(err, files) {
const line = lines[i];
const match = line.match(/export default _.*_([^;]*)_;$/);
if (match && match.length) {
var newName = match[1] + '.js';
const newName = match[1] + '.js';
if (newName != newName.toLowerCase()) {
fs.renameSync(filename, path.resolve(path.dirname(filename), newName));
++renamed;