Skip to content

Commit

Permalink
Merge pull request #41 from rayokota/minor=fix
Browse files Browse the repository at this point in the history
Minor fixes. Fix #42
  • Loading branch information
uw4 committed May 28, 2024
2 parents 9c0ba79 + 9bfd9e6 commit 9f36688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/dashjoin/jsonata/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ public static Boolean contains(String str, Object token) {
* @param {Integer} [limit] - max number of matches to return
* @returns {Array} The array of match objects
*/
public static List<RegexpMatch> match(String str, Pattern regex, Integer limit) {
public static List<Map> match(String str, Pattern regex, Integer limit) {
// undefined inputs always return undefined
if (str == null) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ private static PictureFormat analyseDateTimePicture(String picture) {
}
} else if ("YMDdFWwXxHhmsf".indexOf(def.component) != -1) {
String integerPattern = def.presentation1;
if (def.presentation2 == null) {
if (def.presentation2 != null) {
integerPattern += ";" + def.presentation2;
}
def.integerFormat = analyseIntegerPicture(integerPattern);
Expand Down

0 comments on commit 9f36688

Please sign in to comment.