Skip to content

Commit bfe09a6

Browse files
Fix icon path replacement regex
1 parent dcc37ea commit bfe09a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rename.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ if [ -d "$BASE_DIR/bundles" ]; then
3333
if grep -q "icons/" "$file" 2>/dev/null; then
3434
echo "Processing: $file"
3535
# Replace both /icons/ and ../../icons/ patterns with /ui-icons/ and ../../ui-icons/
36-
sed -i 's|/icons/\([^"'\''[:space:]]*\.svg\)|/ui-icons/\1|g' "$file"
37-
sed -i 's|\.\./\.\./icons/\([^"'\''[:space:]]*\.svg\)|../../ui-icons/\1|g' "$file"
36+
sed -i 's|/icons/\([^")]*\.svg\)|/ui-icons/\1|g' "$file"
37+
sed -i 's|\.\./\.\./icons/\([^")]*\.svg\)|../../ui-icons/\1|g' "$file"
3838
fi
3939
done
4040
fi

0 commit comments

Comments
 (0)