Merge branch 'master' of github.com:cloudhead/less.js

This commit is contained in:
cloudhead 2010-07-04 18:07:52 +02:00
commit dd87c3bae9

View File

@ -147,7 +147,7 @@ function createCSS(styles, sheet, lastModified) {
var href = sheet.href ? sheet.href.replace(/\?.*$/, '') : '';
// If there is no title set, use the filename, minus the extension
var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w]+)\.[a-z]+$/i)[1]);
var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w.]+)\.[a-z]+$/i)[1]);
// If the stylesheet doesn't exist, create a new node
if ((css = document.getElementById(id)) === null) {