mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Fix lint error
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user