Skip to content

Commit

Permalink
fix \ & release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwu51 committed Nov 1, 2024
1 parent 15a449c commit 07eb48c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
gc.log
gc.log
.gitpod.yml
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jtxt"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["frank <sunwu51@126.com>"]
description = "A JavaScript syntax text processing tool, an awk alternative."
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn main() {
let mut vec = vec![];
for line in input.lines() {
let line = line.unwrap();
let line = line.replace("'", "\\'");
let line = line.replace("\\", "\\\\").replace("'", "\\'");
vec.push(line.to_string());
// 先扔到数组里,每200行,处理一次
if vec.len() == 200 {
Expand Down

0 comments on commit 07eb48c

Please sign in to comment.