clip ./ when doing pattern matching

This commit is contained in:
AzaezelX 2020-10-12 00:10:28 -05:00
parent 8a252458d4
commit 93e00a8242

View file

@ -112,7 +112,7 @@ function SimSet::registerDatablock(%scopeSet, %datablockFilePath, %isExclusive)
{
%check = DatablockFilesList.getKey(%i);
//look for a substring match
%isMatch = strIsMatchExpr("*"@ %datablockFilePath,%check );
%isMatch = strIsMatchExpr("*"@ strReplace(%datablockFilePath,"./","/"),%check );
if (%isMatch)
{
//check if we're already locked in
@ -213,7 +213,7 @@ function SimSet::queueExec(%scopeSet, %execFilePath, %isExclusive)
{
%check = ExecFilesList.getKey(%i);
//look for a substring match
%isMatch = strIsMatchExpr("*"@ %execFilePath,%check );
%isMatch = strIsMatchExpr("*"@ strReplace(%execFilePath,"./","/"),%check );
if (%isMatch)
{
//check if we're already locked in