centralize regex
This commit is contained in:
@@ -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 = /^#/
|
||||
Reference in New Issue
Block a user