Skip to content

Commit

Permalink
fix: タイトルにゼロ幅スペースが含まれていた場合でもダウンロードできるようにする (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnao305 authored Dec 3, 2023
1 parent 09e61a0 commit 75c5773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { browser, Downloads } from 'webextension-polyfill-ts'
*/
const removeControlCharacters = (str: string) => {
// eslint-disable-next-line no-control-regex
return str.replaceAll(/[\u0000-\u001F\u007F-\u009F\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g, '')
return str.replaceAll(/[\u0000-\u001F\u007F-\u009F\u061C\u200b\u200E\u200F\u202A-\u202E\u2066-\u2069]/g, '')
}

// 拡張機能インストール時にコンテキストメニューを設定する
Expand Down

0 comments on commit 75c5773

Please sign in to comment.