Skip to content

Tag: eslint

Javascript match for eslint

I am using match like this: text.match(v = /(d+.d+.d+.d+)/g). But When es-lint run it shows an error that v is not defined I tried this: text.match(‘v = /(d+.d+.d+.d+)/g’) But now match is not working. Answer It looks like you’re trying to do this: but inline. You generally should not be ass…