Closed romaintailhurat closed 1 year ago
If we are to believe the VTL spec, the instr function should return:
instr
instr("124", "3") → 0 instr("124", "1") → 1
but instead it actually returns:
instr("124", "3") → 0 instr("124", "1") → 0
so we are not able to distinguish between string patterns that are not here and string patterns starting at the 1st position (1 in VTL, not 0). 🥴
1
0
It's probably just a +1 problem with JS indexes.
Fix 33416b6c6e35ff4192495ddda06b99a1a0a3b043
If we are to believe the VTL spec, the
instr
function should return:but instead it actually returns:
so we are not able to distinguish between string patterns that are not here and string patterns starting at the 1st position (
1
in VTL, not0
). 🥴It's probably just a +1 problem with JS indexes.