@@ -33,27 +33,27 @@ module.exports = (robot) ->
33
33
else
34
34
msg .send " Unable to verify API token: #{ body} "
35
35
36
- robot .respond / sprintly + default + (\d + ) * $ / , (msg ) ->
36
+ robot .respond / sprintly + default + (\d + ) * $ / i , (msg ) ->
37
37
robot .brain .data .sprintly ?= {}
38
38
robot .brain .data .sprintly .product_id = msg .match [1 ]
39
39
msg .send " Default Product ID set to #{ msg .match [1 ]} "
40
40
41
- robot .respond / sprintly * (?: + (\d + ))? (?: + (backlog| in-progress| completed| accepted))? (?: + (\d + ))? * $ / , (msg ) ->
41
+ robot .respond / sprintly * (?: + (\d + ))? (?: + (backlog| in-progress| completed| accepted))? (?: + (\d + ))? * $ / i , (msg ) ->
42
42
query = status : msg .match [2 ] ? ' in-progress'
43
43
query .limit = msg .match [3 ] if msg .match [3 ]
44
44
sprintly (msg).product ()
45
45
.scope (' items.json' )
46
46
.query (query)
47
47
.get ()(formatItems (msg))
48
48
49
- robot .respond / sprintly + (?:(\d + ) + )? mine * $ / , (msg ) ->
49
+ robot .respond / sprintly + (?:(\d + ) + )? mine * $ / i , (msg ) ->
50
50
withUserId msg, (user_id ) ->
51
51
sprintly (msg).product ()
52
52
.scope (' items.json' )
53
53
.query (assigned_to : user_id)
54
54
.get ()(formatItems (msg))
55
55
56
- robot .respond / sprintly + (?:(\d + ) + )? #(\d + ) * $ / , (msg ) ->
56
+ robot .respond / sprintly + (?:(\d + ) + )? #(\d + ) * $ / i , (msg ) ->
57
57
sprintly (msg).product ()
58
58
.scope (" items/#{ msg .match [2 ]} .json" )
59
59
.get () (err , res , body ) ->
@@ -71,12 +71,12 @@ module.exports = (robot) ->
71
71
else
72
72
msg .send " Something came up: #{ body} "
73
73
74
- robot .respond / sprintly + (?:(\d + ) + )? #(\d + ) + tasks * $ / , (msg ) ->
74
+ robot .respond / sprintly + (?:(\d + ) + )? #(\d + ) + tasks * $ / i , (msg ) ->
75
75
sprintly (msg).product ()
76
76
.scope (" items/#{ msg .match [2 ]} /children.json" )
77
77
.get ()(formatItems (msg, true ))
78
78
79
- robot .respond / sprintly + (?:(\d + ) + )? (start| stop| finish| accept| reject| delete) + #? (\d + ) * $ / , (msg ) ->
79
+ robot .respond / sprintly + (?:(\d + ) + )? (start| stop| finish| accept| reject| delete) + #? (\d + ) * $ / i , (msg ) ->
80
80
withUserId msg, (user_id ) ->
81
81
query = {}
82
82
method = ' post'
0 commit comments