feat(core): update

This commit is contained in:
syy11cn 2022-04-14 00:28:05 +08:00
parent c8529ecb35
commit 257b226841
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
/* eslint-disable no-console */
const src = '$111$xxx$222$yyy\n$$\n\frac{1}{2}\n\frac{2}{3}\n$$'
console.log(src.match(/\$\$[^]*\$\$/g).map(item => item.trim().replace(/\$*\n/, '').replace(/\n\$*$/, '').split(/\r?\n/).join('')))