Upd. ContactsEncoder. Content search improved. - #8
Open
alexandergull wants to merge 4 commits into
Open
alexandergull wants to merge 4 commits into
alexandergull wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved moderate findings remain in raw-text handling, attribute processing, and PHP compatibility metadata.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 3
Open (3)
What changed in this PR
Updates contact matching with raw-text range indexing, offset-aware encoding, improved link/attribute handling, and PHP 7.4 compatibility targets.
Changes:
- Adds raw-text detection and precise match offsets.
- Refines
mailto:/tel:processing and attribute cleanup. - Updates Psalm and PHPCS compatibility targets.
| File | Summary and findings |
|---|---|
tests/psalm.xml |
Raises the PHP target. Moderate (2 votes): add the matching PHP constraint to composer.json for intdiv() compatibility (line 14). |
tests/.phpcs.xml |
Raises the PHPCompatibility target. |
Helper/ContactsEncoderHelper.php |
Adds markup indexing and raw-text checks. Moderate (2 votes): template contents are incorrectly skipped (lines 38, 81). Moderate (1 vote): opening raw-text tags can be corrupted because they fall outside indexed ranges (line 308). Nit (1 vote): add coverage for newly supported raw-text tags and boundary cases (line 38). |
ContactsEncoder.php |
Applies offset-aware matching and revised link handling. Moderate (2 votes): the pre-pass can alter raw blocks before the guard runs (lines 322, 327, 930). Moderate (1 vote): the mailto: fast path can corrupt excluded attributes or option text (line 333). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
alexandergull
force-pushed
the
extended_markup.ag
branch
from
September 25, 2026 11:34
9cc9507 to
f9672c5
Compare
svedge
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

https://app.doboard.com/1/task/56146