Conversation
As resources may have a header like `Content-Type: text/javascript;charset=UTF-8`
why not just use in_array method? http://php.net/manual/en/function.in-array.php
|
Your commit will make it work as before. But the aim of this pull request is to ignore resources that have a charset at the end of their So |
|
What you want is use a startsWith check. Maybe add these to the helper class: function endsWith($haystack, $needle) } Then call Or, split the string on ';' and only use the first part for the test. |
|
You could also do: |
|
Why? My solution just works in few line and is very efficient as it is. |
Updated PR Athlon1600#37 by JClerc to have no conflicts with the base branch.
As resources may have a header like
Content-Type: text/javascript;charset=UTF-8