Skip to content

fix: fix text node hints and support regex selector.#2405

Open
alps2006 wants to merge 1 commit intobrookhong:masterfrom
alps2006:fix-textHint
Open

fix: fix text node hints and support regex selector.#2405
alps2006 wants to merge 1 commit intobrookhong:masterfrom
alps2006:fix-textHint

Conversation

@alps2006
Copy link
Copy Markdown
Contributor

@alps2006 alps2006 commented Mar 6, 2026

No description provided.

@brookhong
Copy link
Copy Markdown
Owner

Please describe the issue to be fixed in details and with steps to reproduce.

@alps2006
Copy link
Copy Markdown
Contributor Author

alps2006 commented Mar 9, 2026

const textAnchorPat = /(^[\n\r\s]*\S{3,}|\b\S{4,})/g;

  1. Fix creating hints by regex.
  api.Hints.create(textAnchorPat, function (element) {
    
  });
  1. Fix element callback for text element.
  api.Hints.create(textAnchorPat, function (element) {
    
  });

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