1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix to remove unnecessary escape charactor erorr on IDE

This commit is contained in:
Ryota Kusano
2019-05-13 16:26:21 +09:00
committed by Junyoung Choi
parent e402929cca
commit edac4d3fed
3 changed files with 10 additions and 10 deletions

View File

@@ -159,10 +159,10 @@ class MarkdownEditor extends React.Component {
e.preventDefault()
e.stopPropagation()
const idMatch = /checkbox-([0-9]+)/
const checkedMatch = /^\s*>?\s*[\+\-\*] \[x\]/i
const uncheckedMatch = /^\s*>?\s*[\+\-\*] \[ \]/
const checkReplace = /\[x\]/i
const uncheckReplace = /\[ \]/
const checkedMatch = /^\s*>?\s*[+\-*] \[x]/i
const uncheckedMatch = /^\s*>?\s*[+\-*] \[ ]/
const checkReplace = /\[x]/i
const uncheckReplace = /\[ ]/
if (idMatch.test(e.target.getAttribute('id'))) {
const lineIndex = parseInt(e.target.getAttribute('id').match(idMatch)[1], 10) - 1
const lines = this.refs.code.value