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

Fix lint error

This commit is contained in:
kawmra
2018-05-27 20:08:57 +09:00
parent e72003009d
commit d7ee06ce6d

View File

@@ -313,8 +313,8 @@ export default class CodeEditor extends React.Component {
editor.replaceSelection(taggedUrl) editor.replaceSelection(taggedUrl)
const isImageReponse = (response) => { const isImageReponse = (response) => {
return response.headers.has('content-type') return response.headers.has('content-type') &&
&& response.headers.get('content-type').match(/^image\/.+$/) response.headers.get('content-type').match(/^image\/.+$/)
} }
const replaceTaggedUrl = (replacement) => { const replaceTaggedUrl = (replacement) => {
const value = editor.getValue() const value = editor.getValue()