@@ -37,19 +37,19 @@ describe("parse identifier. edge cases", () => {
37
37
} ,
38
38
{
39
39
input : "path/#repo#hash" ,
40
- expect : [ "path/#repo " , "" , "#hash" ]
40
+ expect : [ "path/" , "" , "#repo #hash" ]
41
41
} ,
42
42
{
43
43
input : "path/#r#hash" ,
44
- expect : [ "path/#r " , "" , "#hash" ]
44
+ expect : [ "path/" , "" , "#r #hash" ]
45
45
} ,
46
46
{
47
47
input : "path/#repo/#repo2#hash" ,
48
- expect : [ "path/#repo/#repo2 " , "" , "#hash" ]
48
+ expect : [ "path/" , "" , "#repo/#repo2 #hash" ]
49
49
} ,
50
50
{
51
51
input : "path/#r/#r#hash" ,
52
- expect : [ "path/#r/#r " , "" , "#hash" ]
52
+ expect : [ "path/" , "" , "#r/#r #hash" ]
53
53
} ,
54
54
{
55
55
input : "path/#/not/a/hash?not-a-query" ,
@@ -77,11 +77,11 @@ describe("parse identifier. Windows-like paths", () => {
77
77
} ,
78
78
{
79
79
input : "path\\#repo#hash" ,
80
- expect : [ "path\\#repo " , "" , "#hash" ]
80
+ expect : [ "path\\" , "" , "#repo #hash" ]
81
81
} ,
82
82
{
83
83
input : "path\\#r#hash" ,
84
- expect : [ "path\\#r " , "" , "#hash" ]
84
+ expect : [ "path\\" , "" , "#r #hash" ]
85
85
} ,
86
86
{
87
87
input : "path\\#/not/a/hash?not-a-query" ,
0 commit comments