10 lines
504 B
JavaScript
10 lines
504 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.mypyOutputPattern = void 0;
|
|
const r = String.raw;
|
|
const endLocation = r `(:(?<endLine>\d+):(?<endColumn>\d+))?`;
|
|
const location = r `(?<location>(?<file>.+?):(?<line>\d+)(:(?<column>\d+))?${endLocation})`;
|
|
const code = r `(?: \[(?<code>[\w-]+)\])?`;
|
|
const mypyOutputLine = r `^${location}: (?<type>\w+): (?<message>.*?)${code}$`;
|
|
exports.mypyOutputPattern = new RegExp(mypyOutputLine);
|
|
//# sourceMappingURL=mypy.js.map
|