Closed avaHitesh-github closed 8 months ago
Buyer User Email's replace '@' function requires replaceAll instead of replace.
Fixes the Buyer Email generation in the store create.ts command
replaces only the first instance of @ with AT
replaces all the instances of @ with AT
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
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