mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-06-10 16:51:23 -05:00
Fix basic pathParser plugin functionality (#502)
This commit is contained in:
@@ -322,6 +322,7 @@ function testRule(pattern, parts) {
|
||||
}
|
||||
|
||||
var matchedParts = [];
|
||||
var subMatches;
|
||||
for (var i = 0; i < pattern.length; i++) {
|
||||
if ((subMatches = testPattern(pattern[i], parts[i])) == null) {
|
||||
return null;
|
||||
@@ -653,7 +654,7 @@ function tryGetTag(tag) {
|
||||
|
||||
var result = gql.Do(query, variables);
|
||||
if (!result.findTags || result.findTags.count == 0) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
return result.findTags.tags[0].id;
|
||||
|
||||
Reference in New Issue
Block a user