mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +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
7a17933c65
commit
979a620ead
@ -56,7 +56,12 @@ public class DocumentGeneratorExtractor {
|
||||
return DocumentGenerator.of(parts[0]);
|
||||
case "adobe":
|
||||
case "microsoft":
|
||||
return DocumentGenerator.of(parts[1]);
|
||||
if (parts.length > 1) {
|
||||
return DocumentGenerator.of(parts[1]);
|
||||
}
|
||||
else {
|
||||
return DocumentGenerator.of(parts[0]);
|
||||
}
|
||||
}
|
||||
|
||||
if (parts.length > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user