Skip to content

Commit 10e1d16

Browse files
authored
Merge pull request #32 from namoscato/master
Add case sensitivity to connector key comparison
2 parents 6670a5f + 990a2f1 commit 10e1d16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/kafka-connect/create-connector/create-connector.controller.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,10 @@ angularAPP.controller('CreateConnectorCtrl', function ($scope, $rootScope, $http
119119
} else {
120120
var key = propertyLine.substring(0, propertyLine.indexOf('='));
121121
var value = propertyLine.substring(propertyLine.indexOf('=') + 1);
122-
if (validConnectorConfigKeys.indexOf( key.toLowerCase() ) == -1) {
122+
if (validConnectorConfigKeys.indexOf(key) === -1) {
123123
var errors = { errors : [ 'Config "' + key + '" is not supported' ] };
124124
errorConfigs.push(errors);
125-
} else
126-
if (value.length == 0) {
125+
} else if (value.length === 0) {
127126
var errors = { errors : [ 'Config "' + key + '" requires a value' ] };
128127
errorConfigs.push(errors);
129128
} else {

0 commit comments

Comments
 (0)