diff options
| author | okayurisotto <okayurisotto@proton.me> | 2023-07-14 07:59:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-14 07:59:54 +0900 |
| commit | c0dbc3b53fc9056e444f10dbc2d4e71d2d4fa439 (patch) | |
| tree | 0038b0132ca8d6b561e518606c8e8d167b724f63 /packages/frontend/src/components/MkPostForm.vue | |
| parent | fix runtime error (diff) | |
| download | sharkey-c0dbc3b53fc9056e444f10dbc2d4e71d2d4fa439.tar.gz sharkey-c0dbc3b53fc9056e444f10dbc2d4e71d2d4fa439.tar.bz2 sharkey-c0dbc3b53fc9056e444f10dbc2d4e71d2d4fa439.zip | |
refactor: `substr` -> `substring` (#11273)
Diffstat (limited to 'packages/frontend/src/components/MkPostForm.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index b269feb07f..462c3be6a8 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -564,7 +564,7 @@ async function onPaste(ev: ClipboardEvent) { return; } - quoteId = paste.substr(url.length).match(/^\/notes\/(.+?)\/?$/)[1]; + quoteId = paste.substring(url.length).match(/^\/notes\/(.+?)\/?$/)[1]; }); } } |