Skip to content

[Fix] properly handle paths with a trailing slash#53

Closed
fresheneesz wants to merge 2 commits intobrowserify:masterfrom
fresheneesz:master
Closed

[Fix] properly handle paths with a trailing slash#53
fresheneesz wants to merge 2 commits intobrowserify:masterfrom
fresheneesz:master

Conversation

@fresheneesz
Copy link

#51

@ljharb ljharb changed the title Fixing issue 51 [Fix] properly handle paths with a trailing slash Dec 13, 2016
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind rebasing as well when making these changes, and checking the "allow maintainers to edit" checkbox?

@@ -0,0 +1,2 @@
node_modules
npm-debug.log No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert the gitignore changes; it's unrelated to this PR.

@@ -0,0 +1 @@
require('./test/') No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a trailing newline on this file

@@ -0,0 +1 @@
console.log('file') No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a trailing newline on this file

@@ -0,0 +1 @@
console.log('folder') No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a trailing newline on this file

var path = require('path')

test('issue 51', function (t) {
t.ok(resolve.sync('./issue51/test/') === path.resolve(__dirname, 'issue51/test/index.js'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also ensure that ./issue51/test/ is not equal to ./issue51/test when there's a test.js file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants