]> git.e2factory.org Git - e2factory.git/commitdiff
url: turn into proper module
authorGordon Hecker <gh@emlix.com>
Tue, 19 Jan 2010 17:21:47 +0000 (18:21 +0100)
committerGordon Hecker <gh@emlix.com>
Fri, 12 Feb 2010 09:51:58 +0000 (10:51 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/url.lua

index a3d913c097e95f3e3ad46c15ac4e475c580e5c37..9354d7cfcaf1201cbeac89c6d0fc7de65fa4f7d0 100644 (file)
@@ -25,6 +25,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ]]
 
+module("url", package.seeall)
+
 --- parse
 -- @param url the url to parse
 -- @return a table holding all parsed parts of the url, or nil on error
@@ -72,6 +74,3 @@ function parse(url)
        end
        return u, nil
 end
-
-url = {}
-url.parse = parse