Skip to content

Commit

Permalink
updated regex to fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattihew committed May 12, 2020
1 parent 2ccee20 commit 88bfacf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
{
"editor.rulers": [120],

"eslint.autoFixOnSave": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
{ "language": "typescriptreact", "autoFix": true }
],
"javascript.preferences.quoteStyle": "double",
"typescript.preferences.quoteStyle": "double"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "k6-to-junit",
"version": "1.0.2",
"version": "1.0.3",
"description": "tool to convert k6 output to junit xml",
"main": "dist/index.js",
"bin": "dist/command.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface Threshold {
const nameRegex = /script: (.*)$/m;

export function parseLine(line: string): Threshold | null {
const threshold = /([✓|✗]) (.*?)\.*:/g.exec(line);
const threshold = /([✓|✗]) (.*?)\.+:/g.exec(line);
if (threshold && threshold.length > 2) {
return {
systemOut: line,
Expand Down

0 comments on commit 88bfacf

Please sign in to comment.