mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-22 08:34:21 -05:00
ServerBrowser: Fix negative numbers in regex
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
var (
|
||||
regexSelfLookup = regexp.MustCompile(`^dwc_pid = (\d{1,10})$`)
|
||||
regexMatchmaking = regexp.MustCompile(`^dwc_mver = -?(\d{1,10}) and dwc_pid != (\d{1,10}) and maxplayers = -?(\d{1,10}) and numplayers < -?(\d{1,10}) and dwc_mtype = -?(\d{1,10}) and dwc_hoststate = (\d{1,10}) and dwc_suspend = (\d{1,10}) and \((.*)\)$`)
|
||||
regexMatchmaking = regexp.MustCompile(`^dwc_mver = (-?\d{1,10}) and dwc_pid != (\d{1,10}) and maxplayers = (-?\d{1,10}) and numplayers < (-?\d{1,10}) and dwc_mtype = (-?\d{1,10}) and dwc_hoststate = (\d{1,10}) and dwc_suspend = (\d{1,10}) and \((.*)\)$`)
|
||||
)
|
||||
|
||||
func filterServers(servers []map[string]string, queryGame string, filter string, publicIP string) []map[string]string {
|
||||
|
||||
Reference in New Issue
Block a user