-
Notifications
You must be signed in to change notification settings - Fork 11
MWPW-185638 update prompt urls parsing logic to support , as delimiter #672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stage
Are you sure you want to change the base?
Conversation
[[MWPW-186708][Domain routing]Load error file from adobe.com on acrobat subdomain ](40d7d4f) [[MWPW-186857]Fix tab trap issue (](6d07562) [[MWPW-171479] fixing the grey-line issue (](10ae5a1) [[MWPW-186708][Domain routing]Load error file from adobe.com on acrobat subdomain (](cb66072) [[MWPW-185735]Load milo libs from adobe.com for acrobat.adobe.com domain (](41dda45) [[MWPW-182131] Automatic invalidating CDN cache (](6856ff8) [[MWPW-164353] Implementing dc-pdflite library to check file page count (Phase 1)(](95fb9b4) [[MWPW-164353] Updating pdflite libs path (](f5b354f) **Test URLs:** Before: https://main--cc--adobecom.aem.live/products/firefly?unitylibs=main After: https://main--cc--adobecom.aem.live/products/firefly?unitylibs=stage Before: https://stage--dc--adobecom.aem.page/acrobat/online/pdf-to-png?unitylibs=main After: https://stage--dc--adobecom.aem.page/acrobat/online/pdf-to-png?unitylibs=stage
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
| .split('||').map((s) => s.trim()).filter((s) => s); | ||
| let urls = []; | ||
| if (typeof item.variationUrls === 'string' && item.variationUrls.trim()) { | ||
| const parts = item.variationUrls.split(',https'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vipu0303 , as discussed can we split making sure if there is a space before or after comma code handles that too. May be something like below
const parts = item.variationUrls.split(/\s*,\s*https/);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to handle parsing of below string:
variationUrls: 'https://u1,https://u2, https://u3 , https://u4'
This PR updates the urls parsing logic to have , as delimiter instead of ||
The excel authoring and this PR merge to main should be done at same time so as to not break the experience on prod.
Resolves: MWPW-185638
Test URLs:
The before URL works now as the prompt excel has || as delimeter
The After URL will work once the the prompt excel is updated to have , as delimiter.