diff --git a/license-fixer.js b/license-fixer.js index 15c9ddc..27c19df 100644 --- a/license-fixer.js +++ b/license-fixer.js @@ -96,7 +96,7 @@ function hashPrefix(line) { } LicenseFixer.prototype.getLicenseForFile = function getLicenseForFile(file) { - if (file.match(/\.(js|go|java)$/)) { + if (file.match(/\.(js|go|java|swift|m|mm|h|c|cpp|hxx|cc)$/)) { return this.slashLicense; } else if (file.match(/\.(pyx?|pxd)$/)) { return this.hashLicense;