mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 16:59:22 +00:00
Make Eslint happy.
This commit is contained in:
parent
058df4329d
commit
0f2de4863b
@ -1,5 +1,5 @@
|
||||
function escapeRegexp(text) {
|
||||
return text.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
|
||||
return text.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
||||
}
|
||||
|
||||
export function censor(text, censoredWords, censoredPattern) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user