Quantcast
Channel: Getting an ESLint: Unnecessary escape character - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Getting an ESLint: Unnecessary escape character

$
0
0

I'm trying to validate a text field but, I'm getting an error for the below regex expression.

if (!/^[a-zA-Z0-9\\\/\*+;&%?#@!^()_="\-:~`|[\]\{\}\s]*$/i.test(e.target.value)) {   this.setState({      newFamilyName: e.target.value,   });}

Do I need to add any more characters in the Regex so fulfill it.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>