Skip to content

Commit

Permalink
Also match comments starting with wip
Browse files Browse the repository at this point in the history
  • Loading branch information
haroon-sheikh committed Jan 7, 2021
1 parent a73b9ec commit 09404c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## v0.2.0

### Updated

- Also match comments starting with wip

## v0.1.1

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion inprogress/inprogress.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func WriteToFile(inProgressSpecs map[string]InProgressSpec, inProgressScenariosW
}

func containsInProgressPrefix(comment string) bool {
var inProgressRegex = regexp.MustCompile(`^in.?progress|//.*in.?progress`)
var inProgressRegex = regexp.MustCompile(`^in.?progress|//.?in.?progress|^wip|^//.?wip`)
return inProgressRegex.MatchString(strings.ToLower(strings.TrimSpace(comment)))
}

Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id" : "inprogress",
"version" : "0.1.1",
"version" : "0.2.0",
"name" : "In-progress",
"description" : "Plugin for tracking in-progress specs/scenarios.",
"install": {
Expand Down

0 comments on commit 09404c5

Please sign in to comment.