Match text with emojis to blacklist using javascript regex - Stack Overflow

admin2025-04-03  0

I want to match texts to items in a swearword blacklist. I'm using a regex to keep it simple.

The problem is the blacklist contains various emoji-based "swearwords":

let blacklist = ['drat', 'shoot', 'gosh darn', '
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1743627668a213821.html

最新回复(0)