   data.license     || errors.push("miss the 'license' field")
 
   data.version.match(/^\d+\.\d+\.\d+$/) ||
-    errors.push("'version' should match the 'd+.d+.d+' format")
+    errors.push("'version' should match the '\d+.\d+.\d+' format")
 
   if errors.length
     print "Failed to parse the 'package.json' file:\n".red +

# Reads the package data out fo the given dreictory
#
exports.read = read = (directory) ->
  directory or= process.cwd()

  data = require("fs").readFileSync("#{directory}/package.json")
  data = JSON.parse(data.toString())

  validate(data)

  data

#

#
# Package files parser/validator
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#


