commit 5a94faac9eefc5f0b1bd21806a0994a8366c4ae9
parent edb42c50f8f3b8f39fecff350feb70b1cbce2a79
Author: Ben Alpert <spicyjalapeno@gmail.com>
Date: Fri, 5 Sep 2014 23:57:29 -0700
Render nothing for /?text=
Test Plan: Went to /?text=, saw nothing (instead of the default).
Auditors: emily
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/static/main.js b/static/main.js
@@ -19,7 +19,7 @@ function init() {
});
}
- var match = (/(?:^\?|&)text=([^&]+)/).exec(window.location.search);
+ var match = (/(?:^\?|&)text=([^&]*)/).exec(window.location.search);
if (match) {
input.value = decodeURIComponent(match[1]);
}