mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
modify: change to modern js
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
export function strip (input) {
|
export function strip (input) {
|
||||||
var output = input
|
let output = input
|
||||||
try {
|
try {
|
||||||
output = output
|
output = output
|
||||||
.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, '$1')
|
.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, '$1')
|
||||||
|
|||||||
Reference in New Issue
Block a user