olegbl / d2rmm

Mod Manager for Diablo II: Resurrected
https://www.nexusmods.com/diablo2resurrected/mods/169
MIT License
54 stars 9 forks source link

Fix float pattern #3

Closed mmena1 closed 1 year ago

mmena1 commented 1 year ago

The current pattern was allowing strings like 1\s1234 which is obviously not a valid number. \\. actually matches a \ character following by any char (.).

By getting rid of the extra \ it now matches a . character as expected so we can have proper float values 🙂.

Example: https://regex101.com/r/pZSUOK/1

olegbl commented 1 year ago

Thanks for the fix!