site is optional in @author

fixes #429
This commit is contained in:
tophf 2018-07-13 00:25:47 +03:00
parent d8627f3768
commit 36f9609a14

View File

@ -141,7 +141,7 @@
requestAnimationFrame(adjustCodeHeight);
function makeAuthor(text) {
const match = text.match(/^(.+?)(?:\s+<(.+?)>)?(?:\s+\((.+?)\))$/);
const match = text.match(/^(.+?)(?:\s+<(.+?)>)?(?:\s+\((.+?)\))?$/);
if (!match) {
return document.createTextNode(text);
}