Skip to content

Gadgets definition editor install#2

Open
In1quity wants to merge 1 commit intomainfrom
cursor/gadgets-definition-editor-install-d9d9
Open

Gadgets definition editor install#2
In1quity wants to merge 1 commit intomainfrom
cursor/gadgets-definition-editor-install-d9d9

Conversation

@In1quity
Copy link
Copy Markdown
Owner

@In1quity In1quity commented Jan 8, 2026

Normalize import page titles to prevent HTML and malformed paths from breaking edit summaries.

Previously, edit summaries for script installations could contain HTML tags, duplicate User: prefixes, or trailing punctuation, leading to broken wiki links like [[meta:User:.../<a ...>User:.../GadgetsDefinitionEditor</a>.]]. This change ensures the page title used in the summary is always clean plain text.


Open in Cursor Open in Web


Note

Addresses malformed edit summaries caused by HTML/duplicate prefixes in imported titles.

  • Adds normalizeImportPageTitle(page) to clean external titles (strip HTML/tags and [], normalize whitespace, collapse duplicate User:<name>/ prefix, trim trailing '.')
  • Uses this normalization in createImport by setting this.page = normalizeImportPageTitle(page) to ensure safe, consistent summary/link text

Written by Cursor Bugbot for commit ad22931. This will update automatically on new commits. Configure here.

Co-authored-by: initechq <initechq@gmail.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Jan 8, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@In1quity In1quity marked this pull request as ready for review January 8, 2026 09:24
@In1quity In1quity force-pushed the main branch 3 times, most recently from 3810b9e to 631770d Compare February 12, 2026 00:49
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