replace all spaces in group/track names and not just the first one
fixes LuckPerms/LuckPerms#3865
String.prototype.replace() in JavaScript only replaces the first occurrence when the first argument provided is a string. If text with multiple spaces was pasted into the box, only the first one would get replaced. This PR replaces the " " with a global regex / /g so all occurrences will get replaced.
Deploy Preview for luckperms ready!
| Name | Link |
|---|---|
| Latest commit | 1db385c8b4e58e4be9302aa13a8ae9a5682904c2 |
| Latest deploy log | https://app.netlify.com/sites/luckperms/deploys/6603374e85c7ae0008b6f3fc |
| Deploy Preview | https://deploy-preview-468--luckperms.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
preview:
https://github.com/LuckPerms/LuckPermsWeb/assets/7706960/d5abc8a1-5a3e-4386-9fb7-288f3ae086c9
replaceAll() is a thing, too.
~~think of the 2.1% of web users that only have replace and not replaceAll!~~