Render nothing for /?text=

Test Plan: Went to /?text=, saw nothing (instead of the default).

Auditors: emily
This commit is contained in:
Ben Alpert 2014-09-05 23:57:29 -07:00
parent edb42c50f8
commit 5a94faac9e

View File

@ -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]);
}