Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: space in the shared url #111

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Conversation

immadisairaj
Copy link
Contributor

@immadisairaj immadisairaj commented Jan 29, 2024

Fixes #110

due to the id directly taking in the spaces from the names, the link shared is containing space in between '%20'. This commit replaces all the spaces with underscore character in the chapter id.

Just adding the replaceAll method to change (or %20) in links to _ works good when both sharing and opening the link (as it is the identifier of that chapter).

PS: Tests are failing even before this commit.

due to the id directly taking in the spaces from the names, the link
shared is containing space in between '%20'. This commit replaces all
the spaces with underscore character in the chapter id.
@spydon spydon requested a review from erickzanardo January 29, 2024 16:13
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

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

Lgtm

@spydon spydon merged commit 3853b93 into bluefireteam:main Feb 1, 2024
1 of 3 checks passed
@immadisairaj immadisairaj deleted the change_id branch February 3, 2024 10:25
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.

Remove spaces / replace them with underscore for the links
3 participants