Skip to content

update regex patterns to generated ones#774

Merged
KevinJump merged 1 commit intov16/mainfrom
v16/regex-patterns
Jun 30, 2025
Merged

update regex patterns to generated ones#774
KevinJump merged 1 commit intov16/mainfrom
v16/regex-patterns

Conversation

@KevinJump
Copy link
Copy Markdown
Owner

moves the regex patterns to be pre-generated (performance improvement)

@KevinJump KevinJump requested a review from Copilot June 30, 2025 11:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the regex patterns to use pre-generated versions for improved performance.

  • Updated the RTEMapper and TemplateWatcher classes to use the new GeneratedRegex attribute.
  • Refactored regex initialization by moving pattern generation to static partial methods.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
uSync.Core/Mapping/Mappers/RTEMapper.cs Refactored regex fields to use GeneratedRegex for pre-generation.
uSync.AutoTemplates/TemplateWatcher.cs Updated regex match to use a GeneratedRegex method and made class partial.

@KevinJump KevinJump merged commit a2e597e into v16/main Jun 30, 2025
1 check passed
@KevinJump KevinJump deleted the v16/regex-patterns branch October 8, 2025 08:34
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