Add initial regex search support and marker highlighting to W2UI demo#2649
Open
dirk4000 wants to merge 3 commits intovitmalina:masterfrom
Open
Add initial regex search support and marker highlighting to W2UI demo#2649dirk4000 wants to merge 3 commits intovitmalina:masterfrom
dirk4000 wants to merge 3 commits intovitmalina:masterfrom
Conversation
Add regex search operator to w2ui Extends w2ui with full regex support for searches in grids. Includes intelligent DOM traversal for highlighting and graceful fallback for invalid patterns.
Update w2ui.js
…I demo - Implement regex-based search for all grid columns - Add marker highlighting for matched substrings - Introduce validation and safe handling for invalid regex patterns - Integrate search+highlight logic into existing grid reload lifecycle
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.
This pull request introduces initial regex-based search functionality and marker highlighting for W2UI grids.
Regex search makes it possible to match complex patterns across all grid columns,
and marker highlighting provides visual feedback for matched substrings.
Features
w2utils.demos/regex-demo.htmldemos/regex-grid-demo.htmldist/w2ui.jsdist/w2ui.es6.jspackage.jsonandgulpfile.jsto fix security vulnerabilities identified by npm audit (outdated dependencies updated to safe versions).Motivation
W2UI’s native search functionality is limited to simple substring matching.
With regex support, users gain significantly more powerful search capabilities,
especially for complex datasets. The added marker highlighting improves clarity
and user experience by visually showing where matches occur.
Notes for Reviewers
dist/files are included so the feature works without an additional build step,but core logic can be reviewed in the files under
src/.Status
Feature is complete and ready for review. Feedback welcome.