mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed 'params' detection issue
This commit is contained in:
parent
e13b24cd30
commit
1604ea61cb
1 changed files with 9 additions and 1 deletions
|
@ -809,7 +809,15 @@ namespace IDE.ui
|
||||||
|
|
||||||
public bool HasParamsParam()
|
public bool HasParamsParam()
|
||||||
{
|
{
|
||||||
return mText.Contains("\x01params ");
|
int lastSplit = mText.LastIndexOf('\x01');
|
||||||
|
if (lastSplit == -1)
|
||||||
|
return false;
|
||||||
|
lastSplit = mText.LastIndexOf('\x01', lastSplit - 1);
|
||||||
|
if (lastSplit == -1)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
StringView sv = .(mText, lastSplit);
|
||||||
|
return sv.StartsWith("\x01params ") || sv.StartsWith("\x01 params ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue