HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.03k stars 648 forks source link

[lua] empty dog indexOf should be 0 but is 2 #11567

Closed Simn closed 5 months ago

Simn commented 5 months ago

See https://github.com/HaxeFoundation/haxe/pull/7402#issuecomment-1934617843

eq(0, "dog".indexOf("", -1))