Nekobit on Nostr: Zero :zt_think: :artix: i actually used regex for handling greentexts in tree bird ...
Zero :zt_think: :artix: (npub18fh…xydc) i actually used regex for handling greentexts in tree bird (on the backend side) and it worked fine since you just have to look for > before a tag. It's pure autism about doing it "correctly" (not using regex but an HTML parser) when you really just need the damn thing done and quickly replaced.
Published at
2023-06-01 00:46:31Event JSON
{
"id": "19faae5a2450b474a5c7e0a99561c3d79ea1486c7d9a854e9c38f388e51d20fa",
"pubkey": "046dd2da464b66e7b9e881a5bb3034a33db476ba2e6c8f543cd18fd014d1570d",
"created_at": 1685580391,
"kind": 1,
"tags": [
[
"p",
"3a6e1d28a75d28a1471873a3db21354f1b16ad76ee0847ddbfe633f9cc73ce44",
"wss://relay.mostr.pub"
],
[
"e",
"e57de9acb96d93631896f77e950a25dd1b06df65c98dbb01af44abfc9c00a94a",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://rdrama.cc/objects/e546b291-0e79-4032-8f86-c0fe653d4ec1"
]
],
"content": "nostr:npub18fhp6298t552z3ccww3akgf4fud3dttkacyy0hdlucelnnrneezqvlxydc i actually used regex for handling greentexts in tree bird (on the backend side) and it worked fine since you just have to look for \u0026gt; before a tag. It's pure autism about doing it \"correctly\" (not using regex but an HTML parser) when you really just need the damn thing done and quickly replaced.",
"sig": "a0be1da360548fcc03c224fc19160d03b3de8007e83cb9e02c33980af6463af88a1495c4048a031317609eb2c26c3eac39e43693cc249a418a8f47272a4a7a9a"
}