[1.21.1] Allow the use of linear-time, threadsafe regex-based matching as an alternative to globs
This PR
- Adds a game setting,
enableAdvancedRegex, which requires a world reload to enable. - Adds buttons to several UIs of logistics-related devices to allow regex-based package and station address matching
- Adds a utility class
LogisticParserand some utility methods to allow matching either globs or regex depending on the setting
I playtested this and it seemed to be functional, but if I missed anything important (or minor, really), feel free to change or just let me know ASAP.
Note: The regex library in question is RE2/J. Also, it seems that I still excluded the FTB libraries, but I noticed that change; fixing rn.
Is there a technical reason this isn't on 1.20.1? If so, that's probably fine but you should otherwise aim to PR to the earliest still supported version. Since this PR would have Create shipping that regex library this PR should make sure its license is adhered to, which doesn't appear to be the case yet.
Is there a technical reason this isn't on 1.20.1? If so, that's probably fine but you should otherwise aim to PR to the earliest still supported version.
Since this PR would have Create shipping that regex library this PR should make sure its license is adhered to, which doesn't appear to be the case yet.
In terms of 1.20.1 not being supported, there's no technical issue that I can tell, and I would be happy to backport!
In terms of the license, it would seem that all I need do is include the license file in the PR. Is that right, or am I missing something here?
Thanks!
Thanks for this PR but we feel this would be better suited as a addon, as this feature requires bundling another library and increases the code complexity alongside the risk of introducing extra bugs.
Thanks for this PR but we feel this would be better suited as a addon, as this feature requires bundling another library and increases the code complexity alongside the risk of introducing extra bugs.
Got it. Thanks for the consideration, and I look forward to making my first addon!