mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
make eslint happy
This commit is contained in:
parent
9f65658c5c
commit
823e50b099
@ -105,7 +105,7 @@ export function selectedText() {
|
|||||||
// replace emojis
|
// replace emojis
|
||||||
$div.find("img.emoji").replaceWith(function() { return this.title; });
|
$div.find("img.emoji").replaceWith(function() { return this.title; });
|
||||||
// replace br with newlines
|
// replace br with newlines
|
||||||
$div.find("br").replaceWith(() => "\n")
|
$div.find("br").replaceWith(() => "\n");
|
||||||
|
|
||||||
return String($div.text()).trim();
|
return String($div.text()).trim();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user