|
|
|
@ -17,6 +17,7 @@ limitations under the License.
|
|
|
|
package action
|
|
|
|
package action
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
|
|
|
|
"errors"
|
|
|
|
"path"
|
|
|
|
"path"
|
|
|
|
"regexp"
|
|
|
|
"regexp"
|
|
|
|
|
|
|
|
|
|
|
|
@ -151,6 +152,12 @@ func (l *List) Run() ([]ri.Releaser, error) {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// A negative offset would otherwise panic in the slice expression below,
|
|
|
|
|
|
|
|
// as the out-of-bounds guard only covers offsets past the end of the list.
|
|
|
|
|
|
|
|
if l.Offset < 0 {
|
|
|
|
|
|
|
|
return nil, errors.New("list offset cannot be negative")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var filter *regexp.Regexp
|
|
|
|
var filter *regexp.Regexp
|
|
|
|
if l.Filter != "" {
|
|
|
|
if l.Filter != "" {
|
|
|
|
var err error
|
|
|
|
var err error
|
|
|
|
|