diff --git a/pom.xml b/pom.xml index da57742..41a5e0a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 in.messai yuga - 1.0.66 + 1.0.67 Yuga Date Parser @@ -188,7 +188,7 @@ scm:git:git@github.com:messai-engineering/Yuga.git https://github.com/messai-engineering/Yuga - yuga-1.0.66 + yuga-1.0.67 diff --git a/src/main/java/com/twelfthmile/yuga/Yuga.java b/src/main/java/com/twelfthmile/yuga/Yuga.java index 9552342..9fdc681 100644 --- a/src/main/java/com/twelfthmile/yuga/Yuga.java +++ b/src/main/java/com/twelfthmile/yuga/Yuga.java @@ -1199,7 +1199,7 @@ else if (str.charAt(j) == 'x' && ((j + 1) == str.length() || ((j + 1) < str.leng map.put("type","km"); i = k+3; } - else if (i >= 0 && i < str.length() && str.charAt(i-1)!=' ' && Character.isAlphabetic(str.charAt(i)) && (!config.containsKey(Constants.YUGA_SOURCE_CONTEXT)||(!Constants.YUGA_SC_CURR.equals(config.get(Constants.YUGA_SOURCE_CONTEXT))&&!Constants.YUGA_SC_TRANSID.equals(config.get(Constants.YUGA_SOURCE_CONTEXT))))) { + else if (i > 0 && i < str.length() && str.charAt(i-1)!=' ' && Character.isAlphabetic(str.charAt(i)) && (!config.containsKey(Constants.YUGA_SOURCE_CONTEXT)||(!Constants.YUGA_SC_CURR.equals(config.get(Constants.YUGA_SOURCE_CONTEXT))&&!Constants.YUGA_SC_TRANSID.equals(config.get(Constants.YUGA_SOURCE_CONTEXT))))) { int j = i; while (j < str.length() && str.charAt(j) != ' ') j++;