Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Aug 21, 2024
1 parent 3b0a4ac commit 4453fba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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 = "relayer-utils"
version = "0.2.6"
version = "0.2.7"
authors = ["Sora Suegami", "Aditya Bisht"]
license = "MIT"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zk-email/relayer-utils",
"version": "0.2.6",
"version": "0.2.7",
"description": "",
"main": "index.js",
"contributors": [
Expand Down
4 changes: 2 additions & 2 deletions src/parse_email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ impl ParsedEmail {
pub fn get_invitation_code(&self) -> Result<String> {
let regex_config =
serde_json::from_str(include_str!("../regexes/invitation_code.json")).unwrap();
let idxes = extract_substr_idxes(&self.canonicalized_header, &regex_config)?[0];
let str = self.canonicalized_header[idxes.0..idxes.1].to_string();
let idxes = extract_substr_idxes(&self.canonicalized_body, &regex_config)?[0];
let str = self.canonicalized_body[idxes.0..idxes.1].to_string();
Ok(str)
}

Expand Down

0 comments on commit 4453fba

Please sign in to comment.