Skip to content

Commit

Permalink
fix: delete useless quote
Browse files Browse the repository at this point in the history
fix: test

chore: change channel

chore: update nodejs version
  • Loading branch information
sanyuan0704 committed Feb 19, 2024
1 parent d5f454c commit 0f9f10b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
target: "x86_64-apple-darwin"
- host: windows-latest
target: "x86_64-pc-windows-msvc"
node: ["14", "16"]
node: ["16", "18"]
runs-on: ${{ matrix.settings.host }}

steps:
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16"]
node: ["16, "18"]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16"]
node: ["16, "18"]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16"]
node: ["16, "18"]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16"]
node: ["16, "18"]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["14", "16"]
node: ["16, "18"]
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 1 addition & 2 deletions crates/utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pub fn extract_title_and_id(text_value: &str) -> (String, String) {
} else {
title.push_str(&text_value);
}
title = title.replace("\"", "\\\"").replace("'", "\\\'");
(title, custom_id)
}

Expand All @@ -40,7 +39,7 @@ mod tests {
#[test]
fn test_extract_title_and_id_with_quotes() {
let (title, custom_id) = extract_title_and_id("\"Hello' World\" {#id123}");
assert_eq!(title, "\\\"Hello\\' World\\\"");
assert_eq!(title, "\"Hello\' World\"");
assert_eq!(custom_id, "id123");
}
}
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2023-07-03"
profile = "default"
channel = "1.74"
profile = "default"

0 comments on commit 0f9f10b

Please sign in to comment.