Eslint fixes (package upgrade) (#2957)
This commit is contained in:
parent
3e3230aa34
commit
c61526f8d5
@ -151,7 +151,7 @@ export default class Application extends Component {
|
||||
let urlError = null;
|
||||
|
||||
if (url && url.length) {
|
||||
var re = /^https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}/g;
|
||||
const re = /^https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}/g; // eslint-disable-line
|
||||
urlError = re.test(url)
|
||||
? null
|
||||
: 'not matching rexex';
|
||||
|
Loading…
Reference in New Issue
Block a user