Fix file location pattern in eslint-stylish problem matcher (#117576)

eslint-stylish file location pattern now match relative and absolute path in Window and *nix

This PR fixes #113306
This commit is contained in:
Stanislav 2021-04-26 19:27:02 +05:00 committed by GitHub
parent 693e3a4aeb
commit 205a366f1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1294,7 +1294,7 @@ class ProblemPatternRegistryImpl implements IProblemPatternRegistry {
});
this.add('eslint-stylish', [
{
regexp: /^([^\s].*)$/,
regexp: /^((?:[a-zA-Z]:)*[\\\/.]+.*?)$/,
kind: ProblemLocationKind.Location,
file: 1
},