Skip to content

Commit

Permalink
feat: commit new version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxiaozhuox committed Sep 9, 2022
1 parent f883491 commit 3d64c4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "markdown-meta-parser"
version = "0.1.2"
version = "0.1.3"

edition = "2021"
authors = ["YuKun Liu <[email protected]>"]
license = "MIT"
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ impl MetaData {
let temp = value[1..value.len() - 1].to_string();
let v = temp.split(',').collect::<Vec<&str>>();
for i in v {
array.push(i.trim().to_string());
let val = i.trim().to_string();
if !val.is_empty() {
array.push(val);
}
}
Value::Array(array)
} else {
Expand Down

0 comments on commit 3d64c4b

Please sign in to comment.