Skip to content

Commit

Permalink
chore: update regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Sep 6, 2018
1 parent 855569f commit 79ad48b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ func (i Issue) AddNodeToGraph(g *gographviz.Graph, parent string) error {
func (issues Issues) prepare() error {
var (
dependsOnRegex, _ = regexp.Compile(`(?i)(require|requires|blocked by|block by|depend on|depends on|parent of) ([a-z/]*#[0-9]+)`)
blocksRegex, _ = regexp.Compile(`(?i)(blocks|block|address|addresses|part of|child of) ([a-z/]*#[0-9]+)`)
weightMultiplierRegex, _ = regexp.Compile(`(?i)(weight_multiplier=)([0-9]+)`)
baseWeightRegex, _ = regexp.Compile(`(?i)(base_weight=)([0-9]+)`)
hideFromRoadmapRegex, _ = regexp.Compile(`(?i)(!hide_from_roadmap)`) // FIXME: use label
isDuplicateRegex, _ = regexp.Compile(`(?i)(duplicates|duplicate) #([0-9]+)`)
blocksRegex, _ = regexp.Compile(`(?i)(blocks|block|address|addresses|part of|child of|fix|fixes) ([a-z/]*#[0-9]+)`)
isDuplicateRegex, _ = regexp.Compile(`(?i)(duplicates|duplicate|dup of|dup|duplicate of) #([0-9]+)`)
weightMultiplierRegex, _ = regexp.Compile(`(?i)(depviz.weight_multiplier[:= ]+)([0-9]+)`)
baseWeightRegex, _ = regexp.Compile(`(?i)(depviz.base_weight[:= ]+)([0-9]+)`)
hideFromRoadmapRegex, _ = regexp.Compile(`(?i)(depviz.hide_from_roadmap)`) // FIXME: use label
)

for _, issue := range issues {
Expand Down

0 comments on commit 79ad48b

Please sign in to comment.