Skip to content

Commit

Permalink
✨ :: [#296] TechStackAppendIntent / 30글자 제한
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Sep 6, 2023
1 parent 85f5c90 commit 70a5000
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import EventLimiter
import Foundation
import TechStackDomainInterface
import Validator

final class TechStackAppendIntent: TechStackAppendIntentProtocol {
private let model: (any TechStackAppendActionProtocol)?
Expand All @@ -19,6 +20,8 @@ final class TechStackAppendIntent: TechStackAppendIntentProtocol {
}

func updateSearchText(text: String) {
let stringSizeValidator = StringSizeValidator(min: 0, max: 30)
guard stringSizeValidator.validate(text) else { return }
model?.updateSearchText(text: text)
debouncer { [weak self] in
guard let self else { return }
Expand Down

0 comments on commit 70a5000

Please sign in to comment.