mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
Merge commit '01b6c83c369061c2175d50dfb3ae1db502862664' into glitch-soc/merge-upstream
This commit is contained in:
@@ -22,7 +22,7 @@ def find_used_icons
|
||||
|
||||
Dir[Rails.root.join('app', 'javascript', '**', '*.*s*')].map do |path|
|
||||
File.open(path, 'r') do |file|
|
||||
pattern = %r{\Aimport .* from 'mastodon/../material-icons/(?<weight>[0-9]+)-(?<size>[0-9]+)px/(?<icon>[^-]*)(?<fill>-fill)?.svg\?react';}
|
||||
pattern = %r{\Aimport .* from '@/material-icons/(?<weight>[0-9]+)-(?<size>[0-9]+)px/(?<icon>[^-]*)(?<fill>-fill)?.svg\?react';}
|
||||
file.each_line do |line|
|
||||
match = pattern.match(line)
|
||||
next if match.blank?
|
||||
|
||||
Reference in New Issue
Block a user