Merge pull request #360 from Azaezel/QQqq

clip ./ when doing pattern matching
This commit is contained in:
Brian Roberts 2020-10-12 02:33:02 -05:00 committed by GitHub
commit 0763ad9649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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