- Remove optional spaces around punctuation marks in search regex
- Fixes issue #20225 where searching for '..' would incorrectly match '. ...'
- Add test cases to prevent regression
- Ensures exact matching for punctuation sequences and text with dots
Resolves: https://github.com/mozilla/pdf.js/issues/20225