diff --git a/crates/apollo-encoder/CHANGELOG.md b/crates/apollo-encoder/CHANGELOG.md index 0eee44052..61c50d292 100644 --- a/crates/apollo-encoder/CHANGELOG.md +++ b/crates/apollo-encoder/CHANGELOG.md @@ -17,6 +17,23 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Maintenance ## Documentation --> +# [0.3.2](https://crates.io/crates/apollo-encoder/0.3.1) - 2022-08-19 + +## Fixes +- **trim double quotes in multilingual description encodings - [lrlna]** + + Mutilingual descriptions failed to be encoded when containing block string + characters. The encoder now works with block string multilingual descriptions + such as: + + ```graphql + """ + котя любить дрімати в "кутку" з рослинами + """ + ``` + + [lrlna]: https://github.com/lrlna + # [0.3.1](https://crates.io/crates/apollo-encoder/0.3.1) - 2022-04-29 ## Fixes diff --git a/crates/apollo-encoder/Cargo.toml b/crates/apollo-encoder/Cargo.toml index ff43a436e..2b6218e3d 100644 --- a/crates/apollo-encoder/Cargo.toml +++ b/crates/apollo-encoder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apollo-encoder" -version = "0.3.1" +version = "0.3.2" authors = [ "Irina Shestak ", "Benjamin Coenen ", diff --git a/crates/apollo-encoder/README.md b/crates/apollo-encoder/README.md index 90965edc2..0bf9c4518 100644 --- a/crates/apollo-encoder/README.md +++ b/crates/apollo-encoder/README.md @@ -24,7 +24,7 @@ Add this to your `Cargo.toml` to start using `apollo-encoder`: ```toml # Just an example, change to the necessary package version. [dependencies] -apollo-encoder = "0.3.1" +apollo-encoder = "0.3.2" ``` Or using [cargo-edit]: diff --git a/crates/apollo-encoder/src/string_value.rs b/crates/apollo-encoder/src/string_value.rs index 6c0162940..eb2a3872e 100644 --- a/crates/apollo-encoder/src/string_value.rs +++ b/crates/apollo-encoder/src/string_value.rs @@ -70,7 +70,7 @@ fn trim_double_quotes(description: &str) -> String { return description.to_string(); } - if !description.starts_with("\"") || !description.ends_with("\"") { + if !description.starts_with('\"') || !description.ends_with('\"') { return description.to_string(); }