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
Create Scrach org and Create store:
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
@tarcang should I create a hotfix PR to the main branch for it to be released as a hotfix?
Yes, please create a hotfix pr to the main branch.
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 https://github.com/forcedotcom/commerce-on-lightning/issues/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
Create Scrach org and Create store:
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