Skip to content

Commit

Permalink
Merge pull request #32 from namoscato/master
Browse files Browse the repository at this point in the history
Add case sensitivity to connector key comparison
  • Loading branch information
Antwnis authored Apr 21, 2017
2 parents 6670a5f + 990a2f1 commit 10e1d16
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ angularAPP.controller('CreateConnectorCtrl', function ($scope, $rootScope, $http
} else {
var key = propertyLine.substring(0, propertyLine.indexOf('='));
var value = propertyLine.substring(propertyLine.indexOf('=') + 1);
if (validConnectorConfigKeys.indexOf( key.toLowerCase() ) == -1) {
if (validConnectorConfigKeys.indexOf(key) === -1) {
var errors = { errors : [ 'Config "' + key + '" is not supported' ] };
errorConfigs.push(errors);
} else
if (value.length == 0) {
} else if (value.length === 0) {
var errors = { errors : [ 'Config "' + key + '" requires a value' ] };
errorConfigs.push(errors);
} else {
Expand Down

0 comments on commit 10e1d16

Please sign in to comment.