mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-07 12:39:26 +00:00
fix: replace all dot chars during normalization (#580)
* fix: replace all dot chars during normalization * changelog
This commit is contained in:
parent
4d5899dd0e
commit
b022ecdb0c
4 changed files with 26 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue