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 8f6bda3 commit e4d4fe5Copy full SHA for e4d4fe5
index.test.ts
@@ -256,6 +256,21 @@ test('getRepositoryInfo', () => {
256
],
257
}
258
`);
259
+ expect(getRepositoryInfoAdapter('https://github.com/refined-github/sandbox/blob/bracket-in-path/foo%2F%5Bbar%5D%2F%2Fbaz')).toMatchInlineSnapshot(`
260
+ {
261
+ "name": "sandbox",
262
+ "nameWithOwner": "refined-github/sandbox",
263
+ "owner": "refined-github",
264
+ "path": "blob/bracket-in-path/foo/[bar]/baz",
265
+ "pathParts": [
266
+ "blob",
267
+ "bracket-in-path",
268
+ "foo",
269
+ "[bar]",
270
+ "baz",
271
+ ],
272
+ }
273
+ `);
274
expect(getRepositoryInfoAdapter('https://github.com/refined-github/sandbox/blob/bracket-in-path/foo%252F%5Bbar%5D%252Fbaz')).toMatchInlineSnapshot(`
275
{
276
"name": "sandbox",
0 commit comments