forcedotcom / commerce-on-lightning

An SFDX Plugin to setup a B2C or B2B Store
BSD 3-Clause "New" or "Revised" License
65 stars 71 forks source link

hotfix: Switch to replaceAll #281

Closed avaHitesh-github closed 8 months ago

avaHitesh-github commented 8 months ago

Buyer User Email's replace '@' function requires replaceAll instead of replace.

What does this PR do?

Fixes the Buyer Email generation in the store create.ts command

What issues does this PR fix or reference?

279

Functionality Before

replaces only the first instance of @ with AT

Functionality After

replaces all the instances of @ with AT

How to Test/Testing Effort

sfdx commerce:scratchorg:create -u hitorg1@hit.demo -a "hitorg1" -v devhub -w 30 --json sfdx commerce:store:create -n b2cstore1 -o b2c -b b2cbuyer1@gmail.com -v devhub -u hitorg1