From e207b0c337233d8a3fe936046ee969fa8f53c557 Mon Sep 17 00:00:00 2001 From: Elan Shanker Date: Mon, 14 Nov 2016 12:08:55 -0500 Subject: [PATCH] Add test case for non-extglob parens with trailing separator --- test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test.js b/test.js index fb9022a..92f194a 100644 --- a/test.js +++ b/test.js @@ -30,6 +30,7 @@ describe('glob-parent', function() { assert.equal(gp('/(a|b)'), '/'); assert.equal(gp('./(a|b)'), '.'); assert.equal(gp('a/(b c)'), 'a', 'not an extglob'); + assert.equal(gp('a/(b c)/'), 'a/(b c)', 'not an extglob'); assert.equal(gp('a/(b c)/d'), 'a/(b c)', 'not an extglob'); assert.equal(gp('path/to/*.js'), 'path/to'); assert.equal(gp('/root/path/to/*.js'), '/root/path/to');