mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-15 12:43:19 +09:00
Clean up the oopsie. Rebuild the blank exercises.
This commit is contained in:
+7
-5
@@ -57,11 +57,13 @@ module.exports = function(argument) {
|
||||
validForNewPackages: false,
|
||||
warnings: [genericWarning]
|
||||
};
|
||||
var corrected = correct(argument);
|
||||
if (corrected) {
|
||||
result.warnings.push(
|
||||
'license is similar to the valid expression "' + corrected + '"'
|
||||
);
|
||||
if (argument.trim().length !== 0) {
|
||||
var corrected = correct(argument);
|
||||
if (corrected) {
|
||||
result.warnings.push(
|
||||
'license is similar to the valid expression "' + corrected + '"'
|
||||
);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user