Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sitecore-jss]: The logic of method escapeNonSpecialQuestionMarks has been fixed #SXA-7975 #2014

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

sc-ruslanmatkovskyi
Copy link
Collaborator

@sc-ruslanmatkovskyi sc-ruslanmatkovskyi commented Jan 21, 2025

Description / Motivation

This fix for the escapeNonSpecialQuestionMarks function to correctly handle negative lookaheads. Previously, the function incorrectly escaped ? within negative lookahead patterns like (?!). Now, the logic ensures that ? inside these constructs remains unescaped while still escaping other unescaped question marks outside special regex constructs.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Copy link
Contributor

@yavorsk yavorsk left a comment

Choose a reason for hiding this comment

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

👍

@yavorsk yavorsk merged commit 14c94b2 into dev Jan 22, 2025
1 check passed
@yavorsk yavorsk deleted the bugfix/SXA-7975-fix-method-escape-special-characters branch January 22, 2025 11:36
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