TypeError: Cannot read property 'replace' of undefined. discord.js

前端 未结 0 1408
旧巷少年郎
旧巷少年郎 2021-01-25 18:41

This is my error code

const escapeRegex = (str) => str.replace(/[.*+?^${}()|[\\]\\\\]/g, "\\\\$&");
相关标签:
回答
  • 消灭零回复
提交回复
热议问题