1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

delete unnecessary } and correct the indent

This commit is contained in:
Sosuke Suzuki
2017-03-18 12:27:43 +09:00
parent fe1c197138
commit 806c3bbaf9

View File

@@ -69,12 +69,11 @@ class MarkdownNoteDetail extends React.Component {
for (let i = 0; i < splitted.length; i++) {
let trimmedLine = splitted[i].trim()
if (trimmedLine.match('```')){
if (trimmedLine.match('```')) {
isMarkdownInCode = !isMarkdownInCode
} else if (isMarkdownInCode === false && trimmedLine.match(/^# +/)) {
title = trimmedLine.substring(1, trimmedLine.length).trim()
break
}
title = trimmedLine.substring(1, trimmedLine.length).trim()
break
}
}