summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-09-25 07:33:37 +0000
committersvncommit <devs@roundcube.net>2007-09-25 07:33:37 +0000
commitb0dbf3ce3e8a7b72e9d2c2376015f1f47de84d12 (patch)
treede3e0c5a2530071cb449187784d67433d41dcfbb /program/js/common.js
parent5f041a37473041070df31233c31885bcd9c36dd1 (diff)
Enable drag-/dropping of folders to a new parent folder, closes #1457344.
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/program/js/common.js b/program/js/common.js
index d9216a58d..da1c09225 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -624,3 +624,11 @@ var bw = new roundcube_browser();
if (!window.console)
console = new rcube_console();
+
+
+// Add escape() method to RegExp object
+// http://dev.rubyonrails.org/changeset/7271
+RegExp.escape = function(str)
+ {
+ return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
+ }