starlib icon indicating copy to clipboard operation
starlib copied to clipboard

`re.split` always returns an empty tuple

Open feep opened this issue 4 years ago • 0 comments

Confirmed by Chris. Not sure what os and qri version he is running.

mac 10.14.6

❯ qri version
0.9.6

❯ cat> transformx.star 
load("re.star", "re")


def transform(ds, ctx):
    parkindex = "a-b-c"
    x1 = re.split("-", parkindex)

    error(x1)

❯ qri save --dry-run -f ./transformx.star me/humba
🏃🏽‍♀️ dry run
Traceback (most recent call last):
  transform.star:8:10: in transform
  <builtin>: in error
Error: transform error: ()

feep avatar Mar 18 '20 15:03 feep