From 73c97de5d022abcec0ab1fb70921c6bf813cfa28 Mon Sep 17 00:00:00 2001 From: Abdo Date: Tue, 10 Sep 2024 23:56:09 +0300 Subject: [PATCH] Do not strip quotation marks from deck/tag names (#3407) * Do not strip quotation marks from deck names * Do not strip quotation marks from tag names --- rslib/src/decks/name.rs | 2 +- rslib/src/tags/register.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rslib/src/decks/name.rs b/rslib/src/decks/name.rs index c8b6c7439..09fd2fe65 100644 --- a/rslib/src/decks/name.rs +++ b/rslib/src/decks/name.rs @@ -188,7 +188,7 @@ impl Collection { } fn invalid_char_for_deck_component(c: char) -> bool { - c.is_ascii_control() || c == '"' + c.is_ascii_control() } fn normalized_deck_name_component(comp: &str) -> Cow { diff --git a/rslib/src/tags/register.rs b/rslib/src/tags/register.rs index ad287506f..9605ea92a 100644 --- a/rslib/src/tags/register.rs +++ b/rslib/src/tags/register.rs @@ -152,7 +152,7 @@ impl Collection { } fn invalid_char_for_tag(c: char) -> bool { - c.is_ascii_control() || is_tag_separator(c) || c == '"' + c.is_ascii_control() || is_tag_separator(c) } fn normalized_tag_name_component(comp: &str) -> Cow {