Skip to content

Commit 7a9cd40

Browse files
author
sreevatsan raman
authored
Merge pull request #2 from data-integrations/fix-codec-check
Ignore case, otherwise none of the cases in the method of RowHash.java would match if a codec like 'MD5' is passed in.
2 parents 264475d + 2bc70d7 commit 7a9cd40

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

icons/.gitignore

Whitespace-only changes.

src/main/java/org/example/directives/RowHash.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public UsageDefinition define() {
5656
@Override
5757
public void initialize(Arguments args) throws DirectiveParseException {
5858
this.column = ((ColumnName) args.value("column")).value();
59-
this.codec = ((Identifier) args.value("codec")).value();
59+
this.codec = ((Identifier) args.value("codec")).value().toLowerCase();
6060
if(!codec.equalsIgnoreCase("md5") && !codec.equalsIgnoreCase("sha1") &&
6161
!codec.equalsIgnoreCase("sha256") && !codec.equalsIgnoreCase("sha384") &&
6262
!codec.equalsIgnoreCase("sha512")) {

widgets/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)