Skip to content

Commit

Permalink
fixed reported codacy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Aug 11, 2018
1 parent d27fc71 commit 8d764af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public StringValue(String escapedValue) {

if (escapedValue.length() > 2) {
for(String p : ALLOWED_PREFIXES) {
if(escapedValue.length() > p.length() && escapedValue.substring(0, p.length()).toUpperCase().equals(p) && escapedValue.charAt(p.length())=='\'') {
if(escapedValue.length() > p.length() && escapedValue.substring(0, p.length()).equalsIgnoreCase(p) && escapedValue.charAt(p.length())=='\'') {
this.prefix = p;
value = escapedValue.substring(p.length() + 1, escapedValue.length() - 1);
return;
Expand Down

0 comments on commit 8d764af

Please sign in to comment.