Skip to content

Commit

Permalink
Merge pull request #14811 from prefeiturasp/fix/123420
Browse files Browse the repository at this point in the history
Bug: 123420 v2
  • Loading branch information
luizhpriotto authored Sep 8, 2024
2 parents 1d5d5fc + 2b2791b commit e993a16
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ private async Task VerificaSeProfessorPodePersistirTurmaDisciplina(string codigo
}
private string TratativaReplaceTempParaArquivoPorRegex(string descricao)
{
if (descricao == null)
return descricao;

string pattern = $@"\b{configuracaoArmazenamentoOptions.Value.BucketTemp}\b";
return Regex.Replace(descricao, pattern, configuracaoArmazenamentoOptions.Value.BucketArquivos);
}
Expand Down

0 comments on commit e993a16

Please sign in to comment.