HaxeFoundation / HaxeFoundation/haxe

Unexpected behavior for ~/\b/g.split() on some targets

Open
#9,615 2 comments 0 reactions 0 assignees View on GitHub
bug platform-cpp platform-hl platform-neko
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Followup for #9601.

___

```haxe
function main() {
trace(~/\b/g.split("Test"));
}
```

Targets seem to disagree there:

- `[,T,e,s,t]` for eval
- `[,T,est]` for neko, cpp and hl
- `[,Test,]` for js, swf, python, php, lua, jvm and cs

We should check if eval, cpp and hl can be aligned with the other targets. Not sure anybody wants to touch neko at this point.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.