
We can now highlight multiple lines, adding #L1-L2 to the hash. We can select the ending line with shift + click. Closes travis-ci/travis-ci#1829
15 lines
299 B
CoffeeScript
15 lines
299 B
CoffeeScript
Travis.LineNumberRegex = /#L(\d+)(-L(\d+))?$/
|
|
Travis.LineNumberParser = Ember.Mixin.create
|
|
|
|
fetchLineNumbers: (hash) ->
|
|
if match = hash.match(Travis.LineNumberRegex)
|
|
start = match[1]
|
|
end = match[3]
|
|
|
|
if end?
|
|
[start, end]
|
|
else
|
|
[start]
|
|
else
|
|
[]
|