@@ -57,7 +57,7 @@ def finding_orderer(f):
5757 "Credit Card Number" ,
5858 result [0 ][0 ].detector_uuid ,
5959 Confidence .VERY_LIKELY ,
60- Range (0 , 19 ), Range (0 , 19 ),
60+ Range (0 , 19 ), Range (0 , 19 ), "" ,
6161 [], ["Inline Detection Rule #1" ])
6262 assert result [0 ][1 ] == Finding (
6363 "489-36-8350" ,
@@ -66,7 +66,7 @@ def finding_orderer(f):
6666 "" ,
6767 result [0 ][1 ].detector_uuid ,
6868 Confidence .VERY_LIKELY ,
69- Range (46 , 57 ), Range (46 , 57 ),
69+ Range (46 , 57 ), Range (46 , 57 ), "" ,
7070 [], ["Inline Detection Rule #1" ])
7171 assert len (redactions ) == 1
7272 assert redactions [0 ] == "491👀-👀👀👀👀-👀👀👀👀-👀👀👀👀 is my credit card number, [REDACTED] ssn"
@@ -318,7 +318,7 @@ def test_scan_text():
318318 "Credit Card Number" ,
319319 result [0 ][0 ].detector_uuid ,
320320 Confidence .VERY_LIKELY ,
321- Range (0 , 19 ), Range (0 , 19 ),
321+ Range (0 , 19 ), Range (0 , 19 ), "" ,
322322 [], ["Inline Detection Rule #1" ])
323323 assert result [0 ][1 ] == Finding (
324324 "489-36-8350" ,
@@ -327,7 +327,7 @@ def test_scan_text():
327327 "" ,
328328 result [0 ][1 ].detector_uuid ,
329329 Confidence .VERY_LIKELY ,
330- Range (46 , 57 ), Range (46 , 57 ),
330+ Range (46 , 57 ), Range (46 , 57 ), "" ,
331331 [], ["Inline Detection Rule #1" ])
332332 assert len (redactions ) == 1
333333 assert redactions [0 ] == "491👀-👀👀👀👀-👀👀👀👀-👀👀👀👀 is my credit card number, [REDACTED] ssn"
0 commit comments