fix generated stylesheet title

This commit is contained in:
cloudhead
2010-06-07 16:12:59 -04:00
parent 693ef38edf
commit 96f414d082

View File

@@ -79,7 +79,7 @@ function createCSS(styles, sheet, lastModified) {
css.title = 'less-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
if (lastModified && typeof(localStorage) !== "undefined") {