Navigation Menu

Skip to content

Commit

Permalink
Use more meaningful name
Browse files Browse the repository at this point in the history
$' ->
$POSTMATCH
  • Loading branch information
kou committed Jun 19, 2013
1 parent fc786f6 commit 4278da5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/droonga/plugin/handler_search.rb
Expand Up @@ -15,6 +15,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

require "English"
require "tsort"
require "groonga"

Expand Down Expand Up @@ -185,7 +186,7 @@ def parseCondition(source, expression, condition)
def parseOrderKeys(keys)
keys.collect do |key|
if key =~ /^-/
[$', :descending]
[$POSTMATCH, :descending]
else
[key, :ascending]
end
Expand Down

0 comments on commit 4278da5

Please sign in to comment.