HaxeFoundation / HaxeFoundation/haxe
Colon `:` in a resource name breaks `haxe.Resource`
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
See #6895
Using colon makes a garbage of a resource name
```
-resource testResource.txt@:testResource
```
Generates this file in resources directory when targeting php:
```
bin/php/res $ ls -la
-rw-r--r-- 1 alexanderkuz domain users 7 12 Mar 18:30 -x58testResource
```
That name comes from https://github.com/HaxeFoundation/haxe/blob/bf0de81c9fea9d67a75ce0b01b4c777d66e27253/codegen.ml#L124
So I believe other targets may be affected too.
Contributor guide
Assessment
This issue has not been assessed yet.