Skip to content

Commit

Permalink
Mask both quoted and unquoted registry tokens
Browse files Browse the repository at this point in the history
fixes #4217
  • Loading branch information
hardillb committed Jul 19, 2024
1 parent cf145da commit 7169185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/admin/Template/sections/NPMRegistry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default {
},
obfuscated () {
if (this.editable.settings.palette_npmrc) {
const text = this.editable.settings.palette_npmrc.replace(/_authToken="(.*)"/g, '_authToken="xxxxxxx"')
const text = this.editable.settings.palette_npmrc.replace(/_authToken="?(.*)"?/g, '_authToken="xxxxxxx"')
return text
} else {
return ''
Expand Down

0 comments on commit 7169185

Please sign in to comment.