Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Fix coverprofile regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi authored and joefitzgerald committed May 15, 2019
1 parent ddf1ca1 commit a0e1a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class Tester {

createCoverageFile() {
const additionalTestArgs = atom.config.get('go-plus.config.additionalTestArgs')
const res = additionalTestArgs.match(/-coverprofile=([^ ]+)/);
const res = additionalTestArgs.match(/-coverprofile=([^\s]+)/);

if (res != null) {
this.coverageFile = res[1]
Expand Down

0 comments on commit a0e1a64

Please sign in to comment.