mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
Merge pull request #2279 from cgross/master
Remove livereload cache buster param in extractId
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
module.exports = {
|
||||
extractId: function(href) {
|
||||
return href.replace(/^[a-z-]+:\/+?[^\/]+/, '' ) // Remove protocol & domain
|
||||
.replace(/[\?\&]livereload=\w+/,'' ) // Remove LiveReload cachebuster
|
||||
.replace(/^\//, '' ) // Remove root /
|
||||
.replace(/\.[a-zA-Z]+$/, '' ) // Remove simple extension
|
||||
.replace(/[^\.\w-]+/g, '-') // Replace illegal characters
|
||||
|
||||
Reference in New Issue
Block a user