mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-21 21:24:46 +00:00
clip ./ when doing pattern matching
This commit is contained in:
parent
8a252458d4
commit
93e00a8242
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue