summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff/suggestions_parser.rb
blob: 043bd9a4bcb455311c3a3835db25549a7e316e08 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

module Gitlab
  module Diff
    class SuggestionsParser
      # Matches for instance "-1", "+1" or "-1+2".
      SUGGESTION_CONTEXT = /^(\-(?<above>\d+))?(\+(?<below>\d+))?$/.freeze
    end
  end
end