Skip to content

Commit 9cabe4e

Browse files
committed
Add CGI.escape_uri_component and unescape_uri_component
1 parent 5ddd3f7 commit 9cabe4e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

stdlib/cgi/0/core.rbs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,11 @@ class CGI
931931
#
932932
def escapeURIComponent: (string) -> String
933933

934+
# <!-- rdoc-file=ext/cgi/escape/escape.c -->
935+
# Returns URL-escaped string following RFC 3986.
936+
#
937+
alias escape_uri_component escapeURIComponent
938+
934939
# <!--
935940
# rdoc-file=ext/cgi/escape/escape.c
936941
# - CGI.unescape(string, encoding=@@accept_charset) -> string
@@ -954,6 +959,11 @@ class CGI
954959
# Returns URL-unescaped string following RFC 3986.
955960
#
956961
def unescapeURIComponent: (string) -> String
962+
963+
# <!-- rdoc-file=ext/cgi/escape/escape.c -->
964+
# Returns URL-unescaped string following RFC 3986.
965+
#
966+
alias unescape_uri_component unescapeURIComponent
957967
end
958968

959969
# <!-- rdoc-file=lib/cgi/core.rb -->

0 commit comments

Comments
 (0)