From 190f28ab1132dcea84377ba2b6d430b8ac5beec9 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 27 Jun 2015 13:58:29 +0200 Subject: [PATCH] Remove escapeJqSelector as it's not used anymore --- public/js/vroom.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 38e40c0..f796ff8 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -122,13 +122,6 @@ $('#switch_lang').change(function(){ }); }); - -// Escape a string to be used as a jQuerry selector -// Taken from http://totaldev.com/content/escaping-characters-get-valid-jquery-id -function escapeJqSelector(string){ - return string.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1'); -} - // Escape entities to prevent XSS function stringEscape(string){ string = string.replace(/[\u00A0-\u99999<>\&]/gim, function(i) {