Permalink
Browse files

Update examples

  • Loading branch information...
1 parent d344c63 commit ebf642f58c9a55c9585ab28fc6ec2c38e4728d6b @isaacs committed Jan 19, 2012
Showing with 11 additions and 2 deletions.
  1. +2 −2 examples/g.js
  2. +9 −0 examples/usr-local.js
View
@@ -1,9 +1,9 @@
-var MG = require("./").Miniglob
+var Glob = require("../").Glob
var pattern = "test/a/**/[cg]/../[cg]"
console.log(pattern)
-var mg = new MG(pattern, {mark: true, sync:true}, function (er, matches) {
+var mg = new Glob(pattern, {mark: true, sync:true}, function (er, matches) {
console.log("matches", matches)
})
console.log("after")
View
@@ -0,0 +1,9 @@
+var Glob = require("../").Glob
+
+var pattern = "{./*/*,/*,/usr/local/*}"
+console.log(pattern)
+
+var mg = new Glob(pattern, {mark: true}, function (er, matches) {
+ console.log("matches", matches)
+})
+console.log("after")

0 comments on commit ebf642f

Please sign in to comment.