mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-23 16:31:01 +00:00
Исправлен индекс совпадения при поиске по регулярке
This commit is contained in:
parent
61e6e39532
commit
3d2b5f0647
@ -74,9 +74,9 @@ public class PatternService {
|
|||||||
found.add(FoundPattern.builder()
|
found.add(FoundPattern.builder()
|
||||||
.patternId(pattern.getId())
|
.patternId(pattern.getId())
|
||||||
.startPosition(matcher.start())
|
.startPosition(matcher.start())
|
||||||
.endPosition(matcher.end())
|
.endPosition(matcher.end() - 1)
|
||||||
.build());
|
.build());
|
||||||
startPos = matcher.end() + 1;
|
startPos = matcher.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user