1
0
Fork 0
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:
Brian Fiete 2020-07-19 05:49:18 -07:00
parent e13b24cd30
commit 1604ea61cb

View file

@ -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 ");
} }
} }