Skip to content

Instantly share code, notes, and snippets.

@niratama
Last active September 22, 2023 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niratama/e327ea8b7b7ea4e53b252f3a655ac879 to your computer and use it in GitHub Desktop.
Save niratama/e327ea8b7b7ea4e53b252f3a655ac879 to your computer and use it in GitHub Desktop.
JavaScriptのescape()でエスケープされない文字の一覧
(new Array(128)).fill(0).map((v,i) => { c = String.fromCharCode(i); e = escape(c); return e === c ? c : ''; })
// '*+-./0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment