Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement as class and port tests to Brittle #27

Merged
merged 7 commits into from
Jun 9, 2022
Merged

Implement as class and port tests to Brittle #27

merged 7 commits into from
Jun 9, 2022

Conversation

kasperisager
Copy link
Contributor

@kasperisager kasperisager commented May 17, 2022

Closes #22

index.js Outdated Show resolved Hide resolved
test.js Show resolved Hide resolved
@kasperisager kasperisager requested a review from mafintosh May 23, 2022 11:06
@kasperisager
Copy link
Contributor Author

@mafintosh This is ready for review.


mkdirp(path.dirname(this.filename), ondir)
if (opts.directory) filename = path.join(opts.directory, path.resolve('/', filename).replace(/^\w+:\\/, ''))
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does the regex do?

Copy link
Collaborator

Choose a reason for hiding this comment

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

vs just path.join(opts.directory, filename)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it removes the protocol portion if passing a URL. It wasn't changed from master:

if (opts.directory) filename = path.join(opts.directory, path.resolve('/', filename).replace(/^\w+:\\/, ''))

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah ok, just a weird diff

@mafintosh mafintosh merged commit ccd1df9 into random-access-storage:master Jun 9, 2022
@kasperisager kasperisager deleted the classify branch June 9, 2022 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants