File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,9 @@ impl TestApp {
189189 static DATE_TIME_REGEX : LazyLock < Regex > =
190190 LazyLock :: new ( || Regex :: new ( r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z" ) . unwrap ( ) ) ;
191191
192+ static EMAIL_CONFIRM_REGEX : LazyLock < Regex > =
193+ LazyLock :: new ( || Regex :: new ( r"/confirm/\w+" ) . unwrap ( ) ) ;
194+
192195 static INVITE_TOKEN_REGEX : LazyLock < Regex > =
193196 LazyLock :: new ( || Regex :: new ( r"/accept-invite/\w+" ) . unwrap ( ) ) ;
194197
@@ -199,6 +202,7 @@ impl TestApp {
199202 . map ( |email| {
200203 let email = EMAIL_HEADER_REGEX . replace_all ( & email, "" ) ;
201204 let email = DATE_TIME_REGEX . replace_all ( & email, "[0000-00-00T00:00:00Z]" ) ;
205+ let email = EMAIL_CONFIRM_REGEX . replace_all ( & email, "/confirm/[confirm-token]" ) ;
202206 let email = INVITE_TOKEN_REGEX . replace_all ( & email, "/accept-invite/[invite-token]" ) ;
203207 email. to_string ( )
204208 } )
You can’t perform that action at this time.
0 commit comments