mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:52:45 +08: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…
Reference in New Issue
Block a user