Mercurial Hosting > luan
diff lucene/src/luan/modules/lucene/Ab_testing.luan @ 539:473e456444ff
Remove object-oriented primitive methods for string and binary
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 17:53:55 -0600 |
parents | 7bc63886d4f2 |
children | c5a93767cc5c |
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/Ab_testing.luan Mon Jun 01 00:51:44 2015 -0600 +++ b/lucene/src/luan/modules/lucene/Ab_testing.luan Mon Jun 01 17:53:55 2015 -0600 @@ -5,6 +5,8 @@ local range = Luan.range local Math = require "luan:Math" local Table = require "luan:Table" +local String = require "luan:String" +local gsub = String.gsub local Io = require "luan:Io" local Http = require "luan:http/Http" local Logging = require "luan:logging/Logging" @@ -202,7 +204,7 @@ local function format(v) v = v .. '' - return v.gsub([[(\d+\.\d{1})\d+]],'$1') + return gsub( v, [[(\d+\.\d{1})\d+]], '$1' ) end function M.html(test_names,tests,results) %>