Skip to content

Commit 0390140

Browse files
committed
Merge pull request #4128 from malekpour/master
[svg-icons] Fix windows build by replacing back to forward slashes in icon paths.
2 parents 5986091 + 34006ad commit 0390140

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/icon-index-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rrs(svgIconPath).forEach((file) => {
1313
while (found === false && index < fileLines.length) {
1414
if (fileLines[index].indexOf('export default') > -1) {
1515
const moduleName = fileLines[index].split(' ')[2].replace(';', '').trim();
16-
const modulePath = file.substring(0, file.length - 3).replace(svgIconPath, '');
16+
const modulePath = file.substring(0, file.length - 3).replace(/\\/g, '/').replace(svgIconPath, '');
1717

1818
outArray.push(`export ${moduleName} from './${modulePath}';\n`);
1919

0 commit comments

Comments
 (0)