Skip to content

Commit

Permalink
Merge pull request #94 from messai-engineering/YugaV65
Browse files Browse the repository at this point in the history
YugaV65 || Fix for IL-799
  • Loading branch information
sonali-anand-tc authored Apr 22, 2024
2 parents d60d577 + 8c37b22 commit 067d243
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>in.messai</groupId>
<artifactId>yuga</artifactId>
<version>1.0.64</version>
<version>1.0.65</version>

<name>Yuga Date Parser</name>
<description>
Expand Down Expand Up @@ -188,7 +188,7 @@
<developerConnection>scm:git:[email protected]:messai-engineering/Yuga.git</developerConnection>
<url>https://github.com/messai-engineering/Yuga</url>

<tag>yuga-1.0.64</tag>
<tag>yuga-1.0.65</tag>

</scm>
</project>
7 changes: 4 additions & 3 deletions src/main/java/com/twelfthmile/yuga/Yuga.java
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,10 @@ else if(c == Constants.CH_HASH && ((i==str.length()-1) || Util.isDelimiter(str.c
if (samt.contains(".")) {
String[] samtarr = samt.split("\\.");
if (samtarr.length == 2) {
int d = Util.parseStrToInt(samtarr[0]);
int mm = Util.parseStrToInt(samtarr[1]);
if(d<=31 && mm<=12) {
// fix for IL-799
Integer d = Util.parseStrToInt(samtarr[0]);
Integer mm = Util.parseStrToInt(samtarr[1]);
if(d != null && mm != null && d<=31 && mm<=12) {
map.setType(Constants.TY_DTE);
map.put(Constants.DT_D, samtarr[0]);
map.put(Constants.DT_MM, samtarr[1]);
Expand Down

0 comments on commit 067d243

Please sign in to comment.