Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit bbb1e8c

Browse files
author
cewald
committed
Fix regular expression in magento1 platform to be able to use AWS EC2 instance hostname
1 parent 57391f9 commit bbb1e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/magento1/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function multiStoreConfig (apiConfig, req) {
1212
if (config.magento1['api_' + storeCode]) {
1313
confCopy = Object.assign({}, config.magento1['api_' + storeCode]) // we're to use the specific api configuration - maybe even separate magento instance
1414
} else {
15-
if (new RegExp('(/' + config.availableStores.join('|') + '/)', 'gm').exec(confCopy.url) === null) {
15+
if (new RegExp('/(' + config.availableStores.join('|') + ')/', 'gm').exec(confCopy.url) === null) {
1616
confCopy.url = (confCopy.url).replace(/(vsbridge)/gm, `${storeCode}/$1`);
1717
}
1818
}

0 commit comments

Comments
 (0)