Afforess / Factorio-Stdlib

Factorio Standard Library Project
ISC License
162 stars 45 forks source link

String.contains doesn't work with strings that contain a hyphen. #161

Open James-Fire opened 1 year ago

James-Fire commented 1 year ago

Describe the Bug

Searching for a substring that contains hyphens consistently fails to find a match.

To Reproduce

Steps to reproduce the behavior:

Attempt to string contain sulfuric-acid into sulfuric-acid-barrel. It returns false. It should return true.

Log file

I have attached a log file showing this in action. The single-word fluids are found without an issue. Multi-word fluids are not.

Script Log proof.txt