This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix newlines not being considered sentence separators in account note (
#16079
)
Also bullets
closed-social-v3
Eugen Rochko
3 years ago
committed by
GitHub
parent
18a2589ad3
commit
b5ac17c4b6
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/javascript/mastodon/features/follow_recommendations/components/account.js
+ 1
- 1
app/javascript/mastodon/features/follow_recommendations/components/account.js
View File
@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
}
;
const
getFirstSentence
=
str
=>
{
const
arr
=
str
.
split
(
/(([\.\?!]+\s)|[.。?!])/
)
;
const
arr
=
str
.
split
(
/(([\.\?!]+\s)|[.。?!
\n•
])/
)
;
return
arr
[
0
]
;
}
;
Write
Preview
Loading…
Cancel
Save