style(web): split regexp to two lines for lint
This commit is contained in:
parent
6f974195a8
commit
977a4b8efd
1 changed files with 4 additions and 1 deletions
|
|
@ -51,8 +51,11 @@ var (
|
||||||
currentGatewayVersionState = gatewayVersionState
|
currentGatewayVersionState = gatewayVersionState
|
||||||
launcherBuildInfoForVersion = fallbackSystemVersionInfoFromConfig
|
launcherBuildInfoForVersion = fallbackSystemVersionInfoFromConfig
|
||||||
versionInfoCache = newSystemVersionCache()
|
versionInfoCache = newSystemVersionCache()
|
||||||
versionLinePattern = regexp.MustCompile(`^(?:[^A-Za-z0-9]*\s*)?picoclaw(?:\.exe)?\s+([^\s(]+)(?:\s+\(git:\s*([^)]+)\))?\s*$`)
|
|
||||||
ansiEscapePattern = regexp.MustCompile(`\x1b\[[0-9;]*m`)
|
ansiEscapePattern = regexp.MustCompile(`\x1b\[[0-9;]*m`)
|
||||||
|
versionLinePattern = regexp.MustCompile(
|
||||||
|
`^(?:[^A-Za-z0-9]*\s*)?picoclaw(?:\.exe)?\s+([^\s(]+)` +
|
||||||
|
`(?:\s+\(git:\s*([^)]+)\))?\s*$`,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *Handler) registerVersionRoutes(mux *http.ServeMux) {
|
func (h *Handler) registerVersionRoutes(mux *http.ServeMux) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue