Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

汚物は消毒 #19

Merged
merged 4 commits into from
Jan 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ jobs:
uses: actions-rs/cargo@v1.0.3
with:
command: test

- name: generate document
uses: actions-rs/cargo@v1.0.3
with:
command: doc
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ fn download_schema(dir: &Path, file: &str) -> Result<(), Box<dyn std::error::Err
if !file.exists() {
let schema = reqwest::blocking::get(url)?.text()?;
let mut file = fs::File::create(file)?;

// 汚物は消毒だ〜!(#12)
let schema = schema
.replace("\\u003c", "\\u003c ")
.replace("\\u003e", "\\u003e ");

file.write_all(schema.as_bytes())?;
}

Expand Down