I have this regex of mine that will check the string if it contains link or url (i.e. https://eslint.org/docs/rules/no-useless-escape)
. Using this regex /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig
, I've encountered and error while running my test cases in react about Unnecessary escape character: \/ no-useless-escape
. How to disable this eslint-error in order for me to proceed with my test case and use the regex.
Appreciate for any help!