[Pkg-javascript-commits] [less.js] 02/26: Remove livereload cache buster param in extractId
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:25:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.1.0
in repository less.js.
commit 54ee4fa20c54b0877ea0fcd9d40270abf21b4498
Author: Chris Gross <schtoo at schtoo.com>
Date: Sun Nov 9 12:02:31 2014 -0500
Remove livereload cache buster param in extractId
---
lib/less-browser/utils.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/less-browser/utils.js b/lib/less-browser/utils.js
index 31ef9a5..e743953 100644
--- a/lib/less-browser/utils.js
+++ b/lib/less-browser/utils.js
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list