diff blog/src/lib/test.luan @ 629:35dde32c02ab 0.15

change String.matches()
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 18 Jan 2016 23:07:52 -0700
parents e930f92d0f61
children ca169567ce07
line wrap: on
line diff
--- a/blog/src/lib/test.luan	Mon Jan 18 06:42:50 2016 -0700
+++ b/blog/src/lib/test.luan	Mon Jan 18 23:07:52 2016 -0700
@@ -8,7 +8,7 @@
 local Io = require "luan:Io"
 local print = Io.print or error()
 local String = require "luan:String"
-local match = String.match or error()
+local matches = String.matches or error()
 
 Http.uncache_site()
 
@@ -57,6 +57,6 @@
 init()
 print '/ again'
 page = get_page '/'
-match(page,'this is an edit') or error()
+matches(page,'this is an edit') or error()
 
 print 'done'