mirror of
https://github.com/less/less.js.git
synced 2026-02-03 19:45:00 -05:00
fix generated stylesheet title
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user