From 71e5b59f08b7a9901d715a86a1d601a53e366eb9 Mon Sep 17 00:00:00 2001 From: Mac McDonald Date: Thu, 21 Sep 2017 11:26:41 -0700 Subject: [PATCH] Add swift, objective-c, C++ file types. --- license-fixer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;