chore: Update translations
This commit is contained in:
@ -10,7 +10,7 @@ import { NostrEvent, ReqCommand, ReqFilter, TaggedNostrEvent, u256 } from "./nos
|
||||
import { RelayInfo } from "./relay-info";
|
||||
import EventKind from "./event-kind";
|
||||
import { seenEvents } from "./seen-events";
|
||||
import {getHex64} from "./utils";
|
||||
import { getHex64 } from "./utils";
|
||||
|
||||
/**
|
||||
* Relay settings
|
||||
|
@ -1,3 +1,3 @@
|
||||
import LRUSet from "@snort/shared/src/LRUSet";
|
||||
|
||||
export const seenEvents = new LRUSet<string>(2000);
|
||||
export const seenEvents = new LRUSet<string>(2000);
|
||||
|
@ -84,8 +84,8 @@ export function parseIMeta(tags: Array<Array<string>>) {
|
||||
}
|
||||
|
||||
export function getHex64(json: string, field: string): string {
|
||||
let len = field.length + 3
|
||||
let idx = json.indexOf(`"${field}":`) + len
|
||||
let s = json.slice(idx).indexOf(`"`) + idx + 1
|
||||
return json.slice(s, s + 64)
|
||||
let len = field.length + 3;
|
||||
let idx = json.indexOf(`"${field}":`) + len;
|
||||
let s = json.slice(idx).indexOf(`"`) + idx + 1;
|
||||
return json.slice(s, s + 64);
|
||||
}
|
||||
|
Reference in New Issue
Block a user