diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-16 01:37:11 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-16 01:37:11 +0300 |
commit | c5ba87a2fbd4eb0bcce5431683e26e8d345db5c4 (patch) | |
tree | 3337cbcf38a72eaa275be7e995c7ed7c83002ca4 /app/services/notification_service.rb | |
parent | 9c4015f3e8080f41daaac82cfe1465f6839ca427 (diff) | |
parent | cd688a60111853f63413a87ad6632ad57368e886 (diff) |
Merge pull request #8096 from cirosantilli/regex-to-string
Replace regex methods by string ones since faster and more readable
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index fb8f812dad8..5a89c5d2936 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -118,7 +118,7 @@ class NotificationService return true unless note.noteable_type.present? # ignore gitlab service messages - return true if note.note =~ /\A_Status changed to closed_/ + return true if note.note.start_with?('_Status changed to closed_') return true if note.cross_reference? && note.system == true opts = { noteable_type: note.noteable_type, project_id: note.project_id } |