Skip to content

Commit

Permalink
Fix chromatic key sanitization for "."
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Oct 4, 2022
1 parent 4ed9abd commit e095e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tasks/chromatic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const chromatic: Task = {
return false;
},
async run(templateKey, { sandboxDir, builtSandboxDir, junitFilename }) {
const tokenEnvVarName = `CHROMATIC_TOKEN_${templateKey.toUpperCase().replace(/\/|-/g, '_')}`;
const tokenEnvVarName = `CHROMATIC_TOKEN_${templateKey.toUpperCase().replace(/\/|-|\./g, '_')}`;
const token = process.env[tokenEnvVarName];

await exec(
Expand Down

0 comments on commit e095e8f

Please sign in to comment.