Skip to content

Commit bd04eb5

Browse files
committed
📚 Update StringPrep docs
1 parent 1707249 commit bd04eb5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/net/imap/sasl/stringprep.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def self.[](table)
2626
#
2727
# Also checks bidirectional characters, when <tt>bidi: true</tt>, which may
2828
# raise a BidiStringError.
29+
#
30+
# +profile+ is an optional string which will be added to any exception that
31+
# is raised (it does not affect behavior).
2932
def check_prohibited!(string, *tables, bidi: false, profile: nil)
3033
tables = TABLE_TITLES.keys.grep(/^C/) if tables.empty?
3134
tables |= %w[C.8] if bidi
@@ -47,10 +50,11 @@ def check_prohibited!(string, *tables, bidi: false, profile: nil)
4750
# RandALCat character MUST be the last character of the string.
4851
#
4952
# This is usually combined with #check_prohibited!, so table "C.8" is only
50-
# checked when +c_8: true+.
53+
# checked when <tt>c_8: true</tt>.
5154
#
5255
# Raises either ProhibitedCodepoint or BidiStringError unless all
53-
# requirements are met.
56+
# requirements are met. +profile+ is an optional string which will be
57+
# added to any exception that is raised (it does not affect behavior).
5458
def check_bidi!(string, c_8: false, profile: nil)
5559
check_prohibited!(string, "C.8", profile: profile) if c_8
5660
if BIDI_FAILS_REQ2.match?(string)

0 commit comments

Comments
 (0)