From 7a36ffd8772fdbee62f319c1b08787705baa052d Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 7 Jun 2010 16:12:59 -0400 Subject: [PATCH] fix generated stylesheet title --- lib/less/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index 8a27736..243681b 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -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") {