Skip to content

Commit

Permalink
fix: space in the shared url (#111)
Browse files Browse the repository at this point in the history
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.

Co-authored-by: Lukas Klingsbo <[email protected]>
  • Loading branch information
immadisairaj and spydon authored Feb 1, 2024
1 parent 276495d commit 3853b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/story.dart
Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,5 @@ class Chapter {
return story._decorator?.decorate(w) ?? w;
}

String get id => '${story.name}_$name';
String get id => '${story.name}_$name'.replaceAll(' ', '_');
}

0 comments on commit 3853b93

Please sign in to comment.