mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 16:24: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() {
|
async getMapInfo() {
|
||||||
const response = await this.execute('ShowNextMap');
|
const response = await this.execute('ShowNextMap');
|
||||||
const match = response.match(
|
const match = response.match(
|
||||||
/^Current map is ([A-z0-9 ]+), Next map is ([A-z0-9 ]*)/
|
/^Current map is (.+), Next map is (.*)/
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
currentLayer: match[1],
|
currentLayer: match[1],
|
||||||
|
Loading…
Reference in New Issue
Block a user