Fix regex

This commit is contained in:
Justin Mazzocchi 2021-02-16 23:35:02 -08:00
parent 451be82b1b
commit e083dbc39b
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -200,7 +200,7 @@ public extension NewStatusViewModel {
private extension NewStatusViewModel { private extension NewStatusViewModel {
// swiftlint:disable:next force_try // swiftlint:disable:next force_try
static let mentionsRegularExpression = try! NSRegularExpression(pattern: #"@\w+"#) static let mentionsRegularExpression = try! NSRegularExpression(pattern: #"@\S+"#)
func handle(event: CompositionViewModel.Event) { func handle(event: CompositionViewModel.Event) {
switch event { switch event {