Skip to content

Commit 33442bb

Browse files
author
Arthur Melton
committed
timeh gets time in human readable format
1 parent 08ea010 commit 33442bb

File tree

4 files changed

+480
-5
lines changed

4 files changed

+480
-5
lines changed

Cargo.lock

Lines changed: 47 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ edition = "2018"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9+
chrono = "0.4.19"
910
clippy = "0.0.302"
1011
curl = "0.4.38"
1112
rand = "0.8.4"

src/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn split(mut text: String, dev: bool) -> Vec<String> {
101101
let text = result[n + inc];
102102
let mut vec = Vec::new();
103103
let mut last = 0;
104-
for (index, matched) in text.match_indices(|c: char| !(c.is_alphanumeric() || c == '\'' || c == ">".chars().nth(0).unwrap() || c == "_".chars().nth(0).unwrap())) {
104+
for (index, matched) in text.match_indices(|c: char| !(c.is_alphanumeric() || c == '\'' || c == ".".chars().nth(0).unwrap() || c == "_".chars().nth(0).unwrap())) {
105105
if last != index {
106106
vec.push(&text[last..index]);
107107
}

0 commit comments

Comments
 (0)