@@ -431,7 +431,7 @@ public async Task<IActionResult> CreateAccountCountrySelection(AccountCreationVi
431431 var accountDetails = await this . multiPageFormService . GetMultiPageFormData < AccountCreationViewModel > ( MultiPageFormDataFeature . AddRegistrationPrompt , this . TempData ) ;
432432 if ( ! string . IsNullOrWhiteSpace ( accountCreationViewModel . FilterText ) )
433433 {
434- string filterText = Regex . Replace ( accountCreationViewModel . FilterText , "[:!@#$%^&*()}{|\" :?><\\ [\\ ]\\ ;'/.,~]" , " " ) ;
434+ string filterText = Regex . Replace ( accountCreationViewModel . FilterText , "[:!@#$%^&*()}{|\" :?><\\ [\\ ]\\ ;'/.,~\\ \" \" \\ ' \\ \\ / ]" , " " ) ;
435435 if ( string . IsNullOrWhiteSpace ( filterText ) )
436436 {
437437 this . ModelState . AddModelError ( "FilterText" , CommonValidationErrorMessages . SearchTermRequired ) ;
@@ -577,7 +577,7 @@ public async Task<IActionResult> CreateAccountCurrentRole(AccountCreationViewMod
577577 var accountCreation = await this . multiPageFormService . GetMultiPageFormData < AccountCreationViewModel > ( MultiPageFormDataFeature . AddRegistrationPrompt , this . TempData ) ;
578578 if ( ! string . IsNullOrWhiteSpace ( accountCreationViewModel . FilterText ) )
579579 {
580- string filterText = Regex . Replace ( accountCreationViewModel . FilterText , "[:!@#$%^&*()}{|\" :?><\\ [\\ ]\\ ;'/.,~]" , " " ) ;
580+ string filterText = Regex . Replace ( accountCreationViewModel . FilterText , "[:!@#$%^&*()}{|\" :?><\\ [\\ ]\\ ;'/.,~\\ \" \" \\ ' \\ \\ / ]" , " " ) ;
581581 if ( string . IsNullOrWhiteSpace ( filterText ) )
582582 {
583583 this . ModelState . AddModelError ( "FilterText" , CommonValidationErrorMessages . SearchTermRequired ) ;
@@ -771,7 +771,7 @@ public async Task<IActionResult> CreateAccountPrimarySpecialtySelection(AccountC
771771 var optionalSpecialty = await this . specialtyService . GetSpecialtiesAsync ( ) ;
772772 if ( ! string . IsNullOrWhiteSpace ( accountCreationViewModel . FilterText ) )
773773 {
774- string filterText = Regex . Replace ( accountCreationViewModel . FilterText , "[:!@#$%^&*()}{|\" :?><\\ [\\ ]\\ ;'/.,~]" , " " ) ;
774+ string filterText = Regex . Replace ( accountCreationViewModel . FilterText , "[:!@#$%^&*()}{|\" :?><\\ [\\ ]\\ ;'/.,~\\ \" \" \\ ' \\ \\ / ]" , " " ) ;
775775 if ( string . IsNullOrWhiteSpace ( filterText ) )
776776 {
777777 this . ModelState . AddModelError ( "PrimarySpecialtyId" , CommonValidationErrorMessages . SpecialtyNotApplicable ) ;
0 commit comments