You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
@@ -100,6 +100,10 @@ export function removeDiacritics(str: string) {
|
||||
return str;
|
||||
}
|
||||
|
||||
export function escapeRegExp(keyword: string) {
|
||||
return keyword.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
||||
}
|
||||
|
||||
export function wrap(text: string, indent: string, width: number) {
|
||||
const wrap_ = require('word-wrap');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user