Skip to content

Commit

Permalink
Fix default string
Browse files Browse the repository at this point in the history
  • Loading branch information
eigilsagafos committed Feb 5, 2020
1 parent 3b0d6af commit cf0f7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/SplitString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const SplitString = (string: ExprArg, delimiter = "."): ExprVal =>
q.Not(q.IsString(string)),
q.Abort("SplitString only accept strings"),
q.Map(
q.FindStrRegex("data.doc", q.Concat(["[^\\", delimiter, "]+"])),
q.FindStrRegex(string, q.Concat(["[^\\", delimiter, "]+"])),
q.Lambda("res", q.Select(["data"], q.Var("res")))
)
)

0 comments on commit cf0f7be

Please sign in to comment.