mirror of
https://github.com/status-im/codimd.git
synced 2025-01-26 02:59:22 +00:00
lint: lib/string.ts
add typing annotate Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
a965ba8336
commit
dded39c2d4
@ -1,3 +1,3 @@
|
||||
export function stripTags(s) {
|
||||
export function stripTags(s: string): string {
|
||||
return s.replace(RegExp('</?[^<>]*>', 'gi'), '')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user