mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 13:19:02 +00:00
Bugfix where DocumentGeneratorExtractor out of bounded for generators starting with 'microsoft' or 'adobe' but having no followup string.
This commit is contained in:
parent
42375f0e53
commit
e5792ba8b3
@ -56,8 +56,13 @@ public class DocumentGeneratorExtractor {
|
|||||||
return DocumentGenerator.of(parts[0]);
|
return DocumentGenerator.of(parts[0]);
|
||||||
case "adobe":
|
case "adobe":
|
||||||
case "microsoft":
|
case "microsoft":
|
||||||
|
if (parts.length > 1) {
|
||||||
return DocumentGenerator.of(parts[1]);
|
return DocumentGenerator.of(parts[1]);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return DocumentGenerator.of(parts[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (parts.length > 1) {
|
if (parts.length > 1) {
|
||||||
return DocumentGenerator.of(parts[0], parts[0] + "_" + truncVersion(parts[1]));
|
return DocumentGenerator.of(parts[0], parts[0] + "_" + truncVersion(parts[1]));
|
||||||
|
Loading…
Reference in New Issue
Block a user