Compare commits
1 Commits
10-21-a
...
7036a909d0
| Author | SHA1 | Date | |
|---|---|---|---|
| 7036a909d0 |
@ -6,19 +6,6 @@
|
|||||||
|
|
||||||
function getValue(tool, patternSize, recipe, pattern, json) {
|
function getValue(tool, patternSize, recipe, pattern, json) {
|
||||||
let result;
|
let result;
|
||||||
if (recipe.toUpperCase() === 'T-LOW')
|
|
||||||
result = '1';
|
|
||||||
else if (recipe.toUpperCase() === 'T-MID')
|
|
||||||
result = '1';
|
|
||||||
else if (recipe.toUpperCase() === 'T-HIGH')
|
|
||||||
result = '1';
|
|
||||||
else if (recipe.toUpperCase() === 'T_LOW')
|
|
||||||
result = '1';
|
|
||||||
else if (recipe.toUpperCase() === 'T_MID')
|
|
||||||
result = '1';
|
|
||||||
else if (recipe.toUpperCase() === 'T_HIGH')
|
|
||||||
result = '1';
|
|
||||||
else {
|
|
||||||
if (tool == undefined || tool.length === 0 || patternSize == undefined || patternSize.length === 0 || recipe == undefined || recipe.length === 0 || pattern == undefined || pattern.length === 0 || json == undefined || json.length === 0)
|
if (tool == undefined || tool.length === 0 || patternSize == undefined || patternSize.length === 0 || recipe == undefined || recipe.length === 0 || pattern == undefined || pattern.length === 0 || json == undefined || json.length === 0)
|
||||||
result = 'A) Invalid input!';
|
result = 'A) Invalid input!';
|
||||||
else {
|
else {
|
||||||
@ -46,8 +33,8 @@ function getValue(tool, patternSize, recipe, pattern, json) {
|
|||||||
let matches = 0;
|
let matches = 0;
|
||||||
for (let index = 0; index < toolMatches.length; index++) {
|
for (let index = 0; index < toolMatches.length; index++) {
|
||||||
debug += 'patternSize: ' + toolMatches[index].patternSize +
|
debug += 'patternSize: ' + toolMatches[index].patternSize +
|
||||||
';~recipe: ' + toolMatches[index].recipe +
|
'; recipe: ' + toolMatches[index].recipe +
|
||||||
';~pattern: ' + toolMatches[index].pattern + ';~';
|
'; pattern: ' + toolMatches[index].pattern + ';~';
|
||||||
if (toolMatches[index].patternSize == patternSize &&
|
if (toolMatches[index].patternSize == patternSize &&
|
||||||
toolMatches[index].recipe.toLowerCase() == recipe.toLowerCase()) {
|
toolMatches[index].recipe.toLowerCase() == recipe.toLowerCase()) {
|
||||||
matches++;
|
matches++;
|
||||||
@ -56,8 +43,7 @@ function getValue(tool, patternSize, recipe, pattern, json) {
|
|||||||
if (matches > 0)
|
if (matches > 0)
|
||||||
result = '1';
|
result = '1';
|
||||||
else
|
else
|
||||||
result = 'Value not matched~Run~patternSize: ' + patternSize + ';~recipe: ' + recipe + ';~pattern: ' + pattern + ';~API~' + debug;
|
result = 'Value not matched~Run~patternSize: ' + patternSize + '; recipe: ' + recipe + '; pattern: ' + pattern + ';~API~' + debug;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,10 +184,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Infineon.EAF.Runtime">
|
<PackageReference Include="Infineon.EAF.Runtime">
|
||||||
<Version>2.61.1</Version>
|
<Version>2.60.0</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="System.Text.Json">
|
<PackageReference Include="System.Text.Json">
|
||||||
<Version>8.0.3</Version>
|
<Version>8.0.5</Version>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
|
|||||||
Reference in New Issue
Block a user