Skip to content

London | 26-SDC-July | Raihan Sharif | Sprint 1 | hashtag link doesn't work correctly - #308

Open
RaihanSharif wants to merge 2 commits into
CodeYourFuture:mainfrom
RaihanSharif:hashtag-whitespace
Open

RaihanSharif wants to merge 2 commits into
CodeYourFuture:mainfrom
RaihanSharif:hashtag-whitespace

Conversation

@RaihanSharif

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1169

Changelist

Changed the regex of the _formatHashtags function so that it it now stops matching a string if it comes across a # or whitespace character. Hashtags must be a single word, cannot contain whitespaces # character.

Hashtag routing caused issues because the link was to the entire string after the "#", now it is any non-whitespace char after a "#"
@RaihanSharif RaihanSharif added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant