File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const HashParserHOC = function (WrappedComponent) {
37
37
window . removeEventListener ( 'hashchange' , this . handleHashChange ) ;
38
38
}
39
39
handleHashChange ( ) {
40
- const hashMatch = window . location . hash . match ( / # ( \d + ) / ) ;
40
+ const hashMatch = window . location . hash . match ( / # ( . + ) / ) ;
41
41
const hashProjectId = hashMatch === null ? defaultProjectId : hashMatch [ 1 ] ;
42
42
this . props . setProjectId ( hashProjectId . toString ( ) ) ;
43
43
}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const getLocalStorage = key => {
66
66
} ;
67
67
68
68
const readHashProjectId = ( ) => {
69
- const match = location . hash . match ( / # ( \d + ) / ) ;
69
+ const match = location . hash . match ( / # ( . + ) / ) ;
70
70
return match === null ? null : match [ 1 ] ;
71
71
} ;
72
72
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const getProjectId = () => {
16
16
// For compatibility reasons, we first look at the hash.
17
17
// eg. https://turbowarp.org/embed.html#1
18
18
const hashMatch = location . hash . match ( / # ( .+ ) / ) ;
19
+ console . log ( hashMatch ) ;
19
20
if ( hashMatch !== null ) {
20
21
return hashMatch [ 1 ] ;
21
22
}
You can’t perform that action at this time.
0 commit comments