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

Remove duplicated if

This commit is contained in:
AWolf81
2020-03-08 22:00:48 +01:00
committed by Junyoung Choi
parent 1cf6f3b1e2
commit d829216c8d

View File

@@ -1126,8 +1126,6 @@ class MarkdownPreview extends React.Component {
const isStartWithHash = rawHref[0] === '#'
const { href, hash } = parser
if (!rawHref) return // not checked href because parser will create file://... string for [empty link]()
const linkHash = hash === '' ? rawHref : hash // needed because we're having special link formats that are removed by parser e.g. :line:10
const extractIdRegex = /file:\/\/.*main.?\w*.html#/ // file://path/to/main(.development.)html