We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b3f6c commit 4d46f90Copy full SHA for 4d46f90
index.js
@@ -8,7 +8,7 @@
8
'use strict';
9
10
var url = require('url');
11
-var cache = {};
+var cache = { __proto__: null };
12
13
function isChecksum(str) {
14
return (/^[a-f0-9]{40}$/i).test(str);
test/index.js
@@ -5,6 +5,8 @@ var test = require('tape');
5
var gh = require('../');
6
7
test('parse-github-url', function (t) {
+ t.equal(gh('toString').href, 'toString');
+
t.test('gets the user:', function (assert) {
assert.equal(gh(''), null);
assert.equal(gh('https://github.com/jonschlinkert/micromatch').owner, 'jonschlinkert');
0 commit comments