ifunk/li3_assets — pull request #1 by amk221 (2012-12-10 22:07:07+00:00)
Title: Regex fixes

Hi I've altered the Optimize helper regex.

My reason for doing so is...

I was specifying:
`array('weight' => 10, 'inline' => false)`

which was generating:
``

However, the regex returned these matches: `
Array (
[0] => js/lib/jquery.js" weight="0"
[1] => lib/jquery.js" weight="0
)`

As you can see, lib/jquery.js" weight="0 is not a valid filename.

My change fixes two things:
1. It makes the regex less greedy so it matches inside the src="" attribute, and nothing more.
2. It means your plugin no longer requires developers to have their JavaScript in the js folder (mine was in 'scripts'.

I've not looked at the CSS pattern matching, but I imagine it needs the same attention.

Also, the Optimize file could do with being dried out a little :)

Cheers for the plugin.... awaiting your input :)