Fix: no chunks parsed out for Law (#8842)

### What problem does this PR solve?

Fixes no chunks parsed out for Law. #5113 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Yongteng Lei 2025-07-15 13:01:56 +08:00 committed by GitHub
parent 451e0a92db
commit dbc2a8689a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,6 +210,7 @@ def bullets_category(sections):
hits = [0] * len(BULLET_PATTERN)
for i, pro in enumerate(BULLET_PATTERN):
for sec in sections:
sec = sec.strip()
for p in pro:
if re.match(p, sec) and not not_bullet(sec):
hits[i] += 1