tangled
alpha
login
or
join now
vielle.dev
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
atproto explorer
0
fork
atom
overview
issues
pulls
pipelines
trim leading and trailing whitespaces and at symbol
handle.invalid
6 months ago
8c32e89f
3947d5e4
+5
-1
1 changed file
expand all
collapse all
unified
split
src
components
search.tsx
+5
-1
src/components/search.tsx
···
12
12
13
13
const processInput = async (input: string) => {
14
14
(document.getElementById("uriForm") as HTMLFormElement).reset();
15
15
-
input = input.trim();
15
15
+
input = input
16
16
+
.trim()
17
17
+
.replace(/\u202c$/, "")
18
18
+
.replace(/^\u202a/, "")
19
19
+
.replace(/^@/, "");
16
20
if (!input.length) return;
17
21
if (
18
22
!input.startsWith("https://bsky.app/") &&