fix generated stylesheet title

This commit is contained in:
cloudhead 2010-06-07 16:12:59 -04:00
parent 4c27e0a9bb
commit 7a36ffd877

View File

@ -79,7 +79,7 @@ function createCSS(styles, sheet, lastModified) {
css.title = 'less-sheet'; css.title = 'less-sheet';
if (sheet) { if (sheet) {
css.title = sheet.title || sheet.href.match(/(^|\/)([-\w]+)\.[a-z]+$/i)[1]; css.title = sheet.title || sheet.href.match(/(?:^|\/)([-\w]+)\.[a-z]+$/i)[1];
// Don't update the local store if the file wasn't modified // Don't update the local store if the file wasn't modified
if (lastModified && typeof(localStorage) !== "undefined") { if (lastModified && typeof(localStorage) !== "undefined") {