You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Tools: Implement "prefer-object-spread" eslint rule
This commit is contained in:
@@ -57,9 +57,7 @@ function replaceRegexDiacritics(regexString) {
|
||||
// { value: 'actualkeyword', type: 'regex/string' }
|
||||
// The function surrounds the keywords wherever they are, even within other words.
|
||||
function surroundKeywords(keywords, text, prefix, suffix, options = null) {
|
||||
options = Object.assign({}, {
|
||||
escapeHtml: false,
|
||||
}, options);
|
||||
options = { escapeHtml: false, ...options };
|
||||
|
||||
if (!keywords.length) return text;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user