mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Render nothing for /?text=
Test Plan: Went to /?text=, saw nothing (instead of the default). Auditors: emily
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user