diff --git a/lib/less/browser.js b/lib/less/browser.js index aa95797..063a927 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -147,7 +147,7 @@ function createCSS(styles, sheet, lastModified) { var href = sheet.href ? sheet.href.replace(/\?.*$/, '') : ''; // If there is no title set, use the filename, minus the extension - var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w]+)\.[a-z]+$/i)[1]); + var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w.]+)\.[a-z]+$/i)[1]); // If the stylesheet doesn't exist, create a new node if ((css = document.getElementById(id)) === null) {