File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " astral" ,
3
- "version" : " 0.0.23 " ,
3
+ "version" : " 0.0.24 " ,
4
4
"description" : " decentralized social platform (nostr client)" ,
5
5
"productName" : " astral" ,
6
6
"author" :
" monica <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -163,10 +163,10 @@ export default defineComponent({
163
163
}
164
164
165
165
this .searching = true
166
- this .searchingProfile = this .searchingProfile .trim (). toLowerCase ()
166
+ this .searchingProfile = this .searchingProfile .trim ()
167
167
168
- if (this .searchingProfile .match (/ ^ [a-f0 -9 ] {64} $ / )) {
169
- this .toProfile (this .searchingProfile )
168
+ if (this .searchingProfile .match (/ ^ [a-fA-F0 -9 ] {64} $ / )) {
169
+ this .toProfile (this .searchingProfile . toLowerCase () )
170
170
this .searchingProfile = ' '
171
171
this .searching = false
172
172
return
@@ -181,7 +181,7 @@ export default defineComponent({
181
181
return
182
182
}
183
183
184
- if (this .searchingProfile .match (/ ^ ([a-z0- 9 -_. \u00C0 -\u1FFF\u2800 -\uFFFD ] * @)? [a-z0- 9 -_. ] + [. ] {1} [a-z0 -9 -_. ] + $ / )) {
184
+ if (this .searchingProfile .match (/ ^ ([a-zA-Z0- 9 -_. \u00C0 -\u1FFF\u2800 -\uFFFD ] * @)? [a-zA-Z0- 9 -_. ] + [. ] {1} [a-zA-Z0 -9 -_. ] + $ / )) {
185
185
if (this .searchingProfile .match (/ ^ @/ ) || ! this .searchingProfile .match (/ @/ )) {
186
186
this .domainNames = await nip05 .searchDomain (this .domain )
187
187
if (this .domainUsers .length || this .domainDefaultPubkey ) {
@@ -192,7 +192,6 @@ export default defineComponent({
192
192
return
193
193
}
194
194
} else {
195
- console .log (' this.domainUsers' , this .domainUsers )
196
195
let {pubkey} = await nip05 .queryProfile (this .searchingProfile )
197
196
if (pubkey) {
198
197
this .toProfile (pubkey)
You can’t perform that action at this time.
0 commit comments