[Glitch] Fix newlines not being considered sentence separators in account note
Port 4bffe10987 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
			
			
This commit is contained in:
		
							parent
							
								
									c1eeb8603a
								
							
						
					
					
						commit
						8df28df755
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -27,7 +27,7 @@ const makeMapStateToProps = () => { | |||
| }; | ||||
| 
 | ||||
| const getFirstSentence = str => { | ||||
|   const arr = str.split(/(([\.\?!]+\s)|[.。?!])/); | ||||
|   const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/); | ||||
| 
 | ||||
|   return arr[0]; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue