mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-09 09:50:55 +00:00
11 lines
371 B
Go
11 lines
371 B
Go
package rpmutils
|
|
|
|
import "regexp"
|
|
|
|
var (
|
|
Nvr = regexp.MustCompile("^(\\S+)-([\\w.]+)-(\\w+(?:\\.[\\w+]+)+?)(?:\\.(\\w+))?(?:\\.rpm)?$")
|
|
epoch = regexp.MustCompile("(\\d+):")
|
|
module = regexp.MustCompile("^(.+)-(.+)-([0-9]{19})\\.((?:.+){8})$")
|
|
dist = regexp.MustCompile("(\\.el8(?:(?:_\\d)|))")
|
|
moduleDist = regexp.MustCompile("\\.module.+$")
|
|
)
|