mirror of
https://github.com/danbulant/bpm
synced 2026-07-06 11:30:38 +00:00
Values for flags only if long variant used
This commit is contained in:
parent
4b6ad0d01d
commit
1b70618de2
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ con.forEach((a, i) => {
|
||||||
if(a.type == "flag"){
|
if(a.type == "flag"){
|
||||||
var next = con[i + 1];
|
var next = con[i + 1];
|
||||||
if(next){
|
if(next){
|
||||||
if(next.type == "content"){
|
if (next.type == "content" && a.variant == "long"){
|
||||||
skipNext = true;
|
skipNext = true;
|
||||||
return flags[a.content] = next.content;
|
return flags[a.content] = next.content;
|
||||||
}
|
}
|
||||||
|
|
@ -47,6 +47,8 @@ con.forEach((a, i) => {
|
||||||
contents.push(a.content);
|
contents.push(a.content);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
global.flags = flags;
|
||||||
|
global.contents = contents;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
args: con,
|
args: con,
|
||||||
flags,
|
flags,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue