1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix regex

This commit is contained in:
Zhiyuan Zheng
2020-11-22 00:57:43 +01:00
parent 6a5d9e7fb8
commit 1c0464d9fb
3 changed files with 8 additions and 8 deletions

View File

@ -64,8 +64,8 @@ export const Index: React.FC = () => {
length,
[length - 1]: last
} = navigation.dangerouslyGetState().history
navigation.navigate(last.key.split(new RegExp(/(.*?)-/))[1], {
screen: 'PostToot'
navigation.navigate(last.key.split(new RegExp(/(.*)-/))[1], {
screen: 'Screen-Shared-Compose'
})
}
})}