remove unused delay function
This commit is contained in:
parent
07a8032c5a
commit
6531be9aa8
|
@ -8,10 +8,6 @@ import {
|
||||||
Vault,
|
Vault,
|
||||||
} from 'obsidian';
|
} from 'obsidian';
|
||||||
|
|
||||||
export function delay(ms: number): Promise<void> {
|
|
||||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
||||||
}
|
|
||||||
|
|
||||||
export function escape_RegExp(str: string): string {
|
export function escape_RegExp(str: string): string {
|
||||||
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue