diff --git a/static/main.js b/static/main.js index d4c0dd9ff..ee86cbbc3 100644 --- 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]); }