Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Irina Shestak <[email protected]>
  • Loading branch information
lrlna and lrlna authored Aug 19, 2022
1 parent 103ee9c commit 801e1ce
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions crates/apollo-encoder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-encoder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apollo-encoder"
version = "0.3.1"
version = "0.3.2"
authors = [
"Irina Shestak <[email protected]>",
"Benjamin Coenen <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-encoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-encoder/src/string_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 801e1ce

Please sign in to comment.