We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec05e82 commit e74c75aCopy full SHA for e74c75a
1 file changed
scripts/rename.sh
@@ -30,10 +30,11 @@ echo "=== Processing icon references with regex ==="
30
# Process all CSS files in bundles directory
31
if [ -d "$BASE_DIR/bundles" ]; then
32
find "$BASE_DIR/bundles" -type f -name "*.css" | while read -r file; do
33
- if grep -q "/icons/" "$file" 2>/dev/null; then
+ if grep -q "icons/" "$file" 2>/dev/null; then
34
echo "Processing: $file"
35
- # Replace /icons/[anything].svg with /ui-icons/[anything].svg
+ # 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"
38
fi
39
done
40
0 commit comments