mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 14:04:25 -05:00
Improve regex for layer collection via RCON
This commit is contained in:
parent
f62e776dff
commit
ef3184e41a
@ -56,7 +56,7 @@ export default class Rcon {
|
||||
async getMapInfo() {
|
||||
const response = await this.execute('ShowNextMap');
|
||||
const match = response.match(
|
||||
/^Current map is ([A-z0-9 ]+), Next map is ([A-z0-9 ]*)/
|
||||
/^Current map is (.+), Next map is (.*)/
|
||||
);
|
||||
return {
|
||||
currentLayer: match[1],
|
||||
|
Loading…
Reference in New Issue
Block a user