Small fix to not detect 'ok...' as link
This commit is contained in:
parent
333bc8226e
commit
2e96851bb9
|
@ -145,7 +145,7 @@ app.use((_req, res, next) => {
|
||||||
`<a target="_blank" href="$1">$1</a>`
|
`<a target="_blank" href="$1">$1</a>`
|
||||||
);
|
);
|
||||||
result = result.replace(
|
result = result.replace(
|
||||||
/(\s|^)(([a-z-_])*\.\S{2,})/gm, // Domains without http
|
/(\s|^)(([a-z-_])*(\.[^\s.]{2,})+)/gm, // Domains without http
|
||||||
`$1<a target="_blank" href="http://$2">$2</a>`
|
`$1<a target="_blank" href="http://$2">$2</a>`
|
||||||
);
|
);
|
||||||
result = result.replace(/\n/g, "<br />");
|
result = result.replace(/\n/g, "<br />");
|
||||||
|
|
|
@ -25,6 +25,7 @@ input[type="submit"] {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 33px;
|
height: 33px;
|
||||||
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
button:hover,
|
button:hover,
|
||||||
a.button:hover,
|
a.button:hover,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<p>Welcome to Social, please use the button below to login to your account:</p>
|
<p>Welcome to Social, please use the button below to login to your account:</p>
|
||||||
<form action="<%= origin %>/login" method="POST" style="padding: 20px 0">
|
<form action="<%= origin %>/login" method="POST" style="padding: 20px 0">
|
||||||
<input type="hidden" name="ssb_key" value="<%= ssb_key %>" />
|
<input type="hidden" name="ssb_key" value="<%= ssb_key %>" />
|
||||||
<input type="submit" value="Login to Social" style="background: #08d; color: #fff; border-radius: 3px; padding: 8px 10px; border: none; cursor: pointer; text-decoration: none; display: inline-block; padding: 16px 20px; font-size: 18px;">
|
<input type="submit" value="Login to Social" style="background: #08d; color: #fff; border-radius: 3px; padding: 8px 10px; border: none; cursor: pointer; text-decoration: none; display: inline-block; padding: 16px 20px; font-size: 18px; -webkit-appearance: none;">
|
||||||
</form>
|
</form>
|
||||||
<p>
|
<p>
|
||||||
Never delete or forward this email, it is they key to accessing your account
|
Never delete or forward this email, it is they key to accessing your account
|
||||||
|
|
Loading…
Reference in New Issue