This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/scripts
saibotk a33e1e45bc
All checks were successful
continuous-integration/drone/pr Build is passing
fix: Replace slugify in deploy-preview-netlify with simple regex
This commit removes the direct dependency on the "slugify" package, since it produces slugs, which are still invalid to be used as subdomain names.

We now use a custom RegEx scheme which just replaces all white spaces, dots and slashes with a "-" sign for readability and removes all otherwise invalid characters.

To account for specific language characters or unicode variants we first normalize it using the String.prototype.normalize() function, so we can preserve as much characters as possible. 

Additionally, we now make sure that our alias is not longer than 37 characters, which is the maximum alias length according to Netlify's documentation [0]

[0]: https://cli.netlify.com/commands/deploy
2022-02-14 15:11:03 +01:00
..
deploy-preview-netlify.js fix: Replace slugify in deploy-preview-netlify with simple regex 2022-02-14 15:11:03 +01:00
deploy-preview-netlify.js.sha384 fix: Replace slugify in deploy-preview-netlify with simple regex 2022-02-14 15:11:03 +01:00
serve-dist.js Add vite (#416) 2021-07-25 13:27:15 +00:00