Since javascript’s encodeURIComponent() encodes everything except
(alphabetic)
(decimal digits)
-
_
.
!
~
*
'
(
)
and encodes these into strings of the format %{digits}
Is it true to say that encodeURIComponent always returns some combination of
- _ . ! ~ * ' ( ) %
plus digits and alphabetic characters, or are there any that I have missed?
Additionally, is it fair to say that any string matched here:
/[^\_\-\.\!\~\*\'\(\)\d\w\%]/ig.test(string)
Has therefore definitely not had encodeURIComponent applied to it?
According to the docs
So I would say you are correct.