[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Use global regexp when quoting quotes in repr.



commit d969b8d7a9b83943476eca93b9a5146444157203
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Fri Apr 5 08:37:19 2013 -0700

    Use global regexp when quoting quotes in repr.
---
 proxy/flashproxy.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 441b511..56c1f0e 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -902,7 +902,7 @@ function Badge() {
 }
 
 function quote(s) {
-    return "\"" + s.replace(/([\\\"])/, "\\$1") + "\"";
+    return "\"" + s.replace(/([\\\"])/g, "\\$1") + "\"";
 }
 
 function maybe_quote(s) {

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits