Add a new @/
alias for the root frontend directory and use it where possible (#28753)
This commit is contained in:
parent
f0abba67db
commit
01b6c83c36
108 changed files with 253 additions and 249 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue