|
|
|
@ -52,8 +52,8 @@ public class ReplaceLogicForTemplate { |
|
|
|
String between = property.substring(index, endIndex); |
|
|
|
String between = property.substring(index, endIndex); |
|
|
|
if (between.length() > 0) { |
|
|
|
if (between.length() > 0) { |
|
|
|
result = endIndex; |
|
|
|
result = endIndex; |
|
|
|
for(int i=0; i<between.length(); i++) { |
|
|
|
for (int i = 0; i < between.length(); i++) { |
|
|
|
if (Character.isDigit(between.charAt(i)) == false) { |
|
|
|
if (!Character.isDigit(between.charAt(i))) { |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -62,4 +62,7 @@ public class ReplaceLogicForTemplate { |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
private ReplaceLogicForTemplate() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|