mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-05 10:18:05 +09:00
+ support
This commit is contained in:
parent
ebb3f3e101
commit
0a0a57cdff
@ -172,8 +172,8 @@ const elements = [
|
||||
(code, i, source) => {
|
||||
const prev = source[i - 1];
|
||||
if (prev && /[a-zA-Z]/.test(prev)) return null;
|
||||
if (!/^\-?[0-9]+/.test(code)) return null;
|
||||
const match = code.match(/^\-?[0-9-]+/)[0];
|
||||
if (!/^[\-\+]?[0-9]+/.test(code)) return null;
|
||||
const match = code.match(/^[\-\+]?[0-9-]+/)[0];
|
||||
if (match) {
|
||||
return {
|
||||
html: `<span class="number">${match}</span>`,
|
||||
|
Loading…
Reference in New Issue
Block a user