cloudhead/less.js — Issue #640: Less don't work if your less file ends with /
Author: Garito
Created: 2012-02-17 19:05:38+00:00
State: open

If your server needs to add a / at the end of your served file less won't work for you raising a

href.match(/([^\/]+)$/) is null at line 3094

this is because the regular expression sentence

If you go to this line and change from

var filename = href.match(/([^\/]+)$/)[1];

to

var filename = href.match(/([^\/]+\/?)$/)[1];

it will work as expected. Note how I add \/?

Can you add this tiny change the the main branch for the next version please?

Thanks a lot!!!