Skip to content

Commit

Permalink
[api] wording...
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Nov 18, 2011
1 parent f731521 commit b701b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/app/controllers/issue_trackers_controller.rb
Expand Up @@ -137,7 +137,7 @@ def issues_in
IssueTracker.regexen.each do |regex|
# Ruby's string#scan method unfortunately doesn't return the whole match if a RegExp contains groups.
# RegExp#match does that but it doesn't advance the string if called consecutively. Thus we have to do
# this it hand...
# it by hand...
text = params[:text]
begin
match = regex.match(text)
Expand Down
Expand Up @@ -6,7 +6,7 @@ def self.up
# For CVEs, the whole number can be send upstream (e.g 'CVE-2011-1234').

# This is easily fixed by only returning the number part in a RegEx capture group instead of
# the whole match. This implies that a regexp should include at most one capture group
# the whole match. The API always takes the last capture group (for cases like /(Kernel|K|bko)#(\d+)/).

trackers_regexen = {
:boost => 'boost#(\d+)',
Expand Down

0 comments on commit b701b9f

Please sign in to comment.