Skip to content

Commit e83551b

Browse files
committed
Fix issue with last commit (Adds missing replace string)
1 parent 667820d commit e83551b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default ({ types: t }) => ({
3636
if(aliasMatch){
3737
const resolveRoot = resolve(process.cwd(), root || './');
3838
const aliasedPath = resolve(resolveRoot, aliasMatch);
39-
svgPath = aliasedPath + path.node.source.value.replace(aliasMatch);
39+
svgPath = aliasedPath + path.node.source.value.replace(aliasMatch, '');
4040
} else {
4141
svgPath = resolveFrom(dirname(iconPath), path.node.source.value);
4242
}

0 commit comments

Comments
 (0)