From 3853b933ed45edb0b8c66ad8250a8b148add675c Mon Sep 17 00:00:00 2001 From: Sai Rajendra Immadi Date: Fri, 2 Feb 2024 03:46:08 +0530 Subject: [PATCH] fix: space in the shared url (#111) 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 --- lib/src/story.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/story.dart b/lib/src/story.dart index 1120a8f..5184195 100644 --- a/lib/src/story.dart +++ b/lib/src/story.dart @@ -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(' ', '_'); }