Skip to content

feat: detect URLs in PII Redaction Middleware#7

Merged
veeqtoh merged 1 commit into
promptphp:mainfrom
Falgunimoridhara:feature/detect-urls
Jul 18, 2026
Merged

feat: detect URLs in PII Redaction Middleware#7
veeqtoh merged 1 commit into
promptphp:mainfrom
Falgunimoridhara:feature/detect-urls

Conversation

@Falgunimoridhara

Copy link
Copy Markdown
Contributor

Motivation and Context

This PR adds the URL entity type to the PII Redaction Middleware, this ensures URLs embedded in free text are correctly identified and redacted regardless of how they are written.

Dependencies

No new dependencies are required. Standard project dependencies must be installed for testing.

Test Instructions

A new URL detection test case added in src/PIIRedactor/tests/PIIRedactorTest.php. It covers http:// or https:// or urls without scheme (www.example.com or example.com/path)

@veeqtoh veeqtoh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Falgunimoridhara thanks again for this amazing contribution.

@veeqtoh
veeqtoh merged commit bf35f8c into promptphp:main Jul 18, 2026
1 check passed
@veeqtoh

veeqtoh commented Jul 18, 2026

Copy link
Copy Markdown
Member

Closes #5

@Falgunimoridhara

Copy link
Copy Markdown
Contributor Author

@veeqtoh I am glad I could contribute.

@Falgunimoridhara
Falgunimoridhara deleted the feature/detect-urls branch July 18, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants