Skip to content

Commit

Permalink
fix(Syntax Check): ECL Error Parser could not handle "C:\"
Browse files Browse the repository at this point in the history
"c:\" was fine however.

Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
  • Loading branch information
GordonSmith committed Jun 1, 2018
1 parent d185363 commit d95dd44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/comms/src/clienttools/eclcc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class EclccErrors {
constructor(stdErr: string, checked: string[]) {
if (stdErr && stdErr.length) {
for (const errLine of stdErr.split(os.EOL)) {
let match = /([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\): (error|warning|info) C(\d*): (.*)/.exec(errLine);
let match = /([a-z,A-Z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\): ?(error|warning|info) C(\d*): ?(.*)/.exec(errLine);
if (match) {
const [, filePath, row, _col, severity, code, _msg] = match;
const line: number = +row;
Expand Down Expand Up @@ -182,7 +182,7 @@ export class LocalWorkunit {
id = item.id;
}
if (key === "$" && item.name === "definition") {
const match = /([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(item.value);
const match = /([a-z,A-Z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(item.value);
if (match) {
const [, file, row, _col] = match;
const line: number = +row;
Expand Down

0 comments on commit d95dd44

Please sign in to comment.