1
0
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:
sota1235
2017-04-29 13:57:27 +09:00
committed by asmsuechan
parent 0a28798d54
commit a40f8d25ef

View File

@@ -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')