diff --git a/lib/less/browser.js b/lib/less/browser.js index 8a277360..243681b1 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") {