fix: replace all dot chars during normalization (#580)

* fix: replace all dot chars during normalization

* changelog
This commit is contained in:
John-Michael Faircloth 2025-05-14 09:32:58 -05:00 committed by GitHub
parent 4d5899dd0e
commit b022ecdb0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 2 deletions

View file

@ -5,7 +5,7 @@
*/
function normalizeOutputKey(dataKey, upperCase = false) {
let outputKey = dataKey
.replace(".", "__")
.replaceAll(".", "__")
.replace(new RegExp("-", "g"), "")
.replace(/[^\p{L}\p{N}_-]/gu, "");
if (upperCase) {