centralize regex

This commit is contained in:
Eric Bailey
2023-10-19 16:28:12 -04:00
parent 72bb3ccfac
commit 2d62a4942a
5 changed files with 30 additions and 14 deletions
+3
View File
@@ -0,0 +1,3 @@
export const TAG_REGEX = /(?:^|\s)(#[^\d\s]\S*)(?=\s)?/gi
export const ENDING_PUNCTUATION_REGEX = /\p{P}+$/gu
export const LEADING_HASH_REGEX = /^#/