Skip to content

Commit

Permalink
feat: add hexStringRegex in nlp-util
Browse files Browse the repository at this point in the history
  • Loading branch information
atrifat committed Nov 13, 2023
1 parent 9f7aaeb commit 344f29b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nlp-util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const MentionNostrEntityRegex = /(nostr:)?@?(nsec1|npub1|nevent1|naddr1|n
export const unnecessaryCharRegex = /([#*!?:(){}|\[\].,+\-_=<>%@&$~;/\\\t\r\n]|\d+|[°])/g;
export const fullUnnecessaryCharRegex = /([#*!?:(){}|\[\].,+\-_=<>%@&$"'`~;/\\\t\r\n]|\d+|[°])/g;
export const commonEmojiRegex = /([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF]|\p{Emoji})/gu;
export const hexStringRegex = /(0x)?[0-9a-f]{6,}/ig;

// List of non good words pattern
export const n1ggerPatternRegex = /(\w+)?(n(i|1|l|\||!)g{2,}(ay?|ers?|4|3rs?|uh))/ig;
Expand Down

0 comments on commit 344f29b

Please sign in to comment.