Skip to content

feat: ✨ remove action tags from description#43

Open
martonvago wants to merge 1 commit intomainfrom
feat/remove-action-tags
Open

feat: ✨ remove action tags from description#43
martonvago wants to merge 1 commit intomainfrom
feat/remove-action-tags

Conversation

@martonvago
Copy link
Copy Markdown
Collaborator

Description

This PR removes action tags from the field description, as Kris suggested.

Closes #36

This PR needs a quick review.

Checklist

  • Formatted Markdown
  • Ran just run-all

description = redcap_field["field_annotation"]

# Remove action tags of the form @tag or @tag(...)
description = re.sub(r"@[\w-]+(\(.*\))?", "", description, flags=re.DOTALL).strip()
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

re.DOTALL makes . match newlines as well, which can also appear inside the brackets.

@martonvago martonvago moved this from Todo to In Review in Data development Apr 7, 2026
@martonvago martonvago marked this pull request as ready for review April 7, 2026 14:08
Copy link
Copy Markdown
Contributor

@K-Beicher K-Beicher left a comment

Choose a reason for hiding this comment

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

This looks like it is picking up all the variations! -even my randomisation calculations!

@github-project-automation github-project-automation bot moved this from In Review to In Progress in Data development Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Remove action tags from field description

2 participants