@@ 62-67 (lines=6) @@ | ||
59 | // Fonts in css sometimes contain some funny charcters that are not |
|
60 | // part of the file name but are just there to deal with, yep you |
|
61 | // guessed it... IE :( |
|
62 | if (Str::s($fileinfo['extension'])->contains('?#')) |
|
63 | { |
|
64 | $ext = '<START>'.$fileinfo['extension'].'<END>'; |
|
65 | $fileinfo['extension'] = Str::s($ext)->between('<START>', '?'); |
|
66 | $after_file_name = '?'.Str::s($ext)->between('?', '<END>'); |
|
67 | } |
|
68 | ||
69 | // SVG fonts can have some sort of ID, I am no expert on this but |
|
70 | // for our purposes we can safely ignore the id.. |
|
@@ 71-76 (lines=6) @@ | ||
68 | ||
69 | // SVG fonts can have some sort of ID, I am no expert on this but |
|
70 | // for our purposes we can safely ignore the id.. |
|
71 | if (Str::s($fileinfo['extension'])->contains('svg#')) |
|
72 | { |
|
73 | $ext = '<START>'.$fileinfo['extension'].'<END>'; |
|
74 | $fileinfo['extension'] = 'svg'; |
|
75 | $after_file_name = '#'.Str::s($ext)->between('#', '<END>'); |
|
76 | } |
|
77 | ||
78 | // Create the real path to the actual asset |
|
79 | $css_asset_path = realpath |