Skip to content

Commit 1eea703

Browse files
committed
🚨 StringPrep: more helpful error reporting
1 parent 1464711 commit 1eea703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/imap/sasl/stringprep.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def self.[](table)
2929
def check_prohibited!(string, *tables, bidi: false, profile: nil)
3030
tables = TABLE_TITLES.keys.grep(/^C/) if tables.empty?
3131
tables |= %w[C.8] if bidi
32-
table = tables.find {|t| TABLE_REGEXPS[t].match?(string) }
32+
table = tables.find {|t| TABLE_REGEXPS.fetch(t).match?(string) }
3333
raise ProhibitedCodepoint.new(
3434
table, string: string, profile: nil
3535
) if table

0 commit comments

Comments
 (0)