Skip to content

Commit

Permalink
Merge pull request #297 from GSM-MSG/296-techstack-text-count-max-30
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun authored Sep 17, 2023
2 parents 85f5c90 + 70a5000 commit 8cb6abc
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 8cb6abc

Please sign in to comment.