python icon indicating copy to clipboard operation
python copied to clipboard

Arrumar formatação de strings em Placa de Carro

Open Juliene-Trindade opened this issue 4 months ago • 8 comments

⚠️ Alguns exemplos estão com 6 caracteres ao invés de 7:


get_format_license_plate

from brutils import get_format_license_plate
>>> print(get_format_license_plate("ABC123"))
"None"
>>> print(get_format_license_plate("abc123"))
"None"

convert_license_plate_to_mercosul

from brutils import convert_license_plate_to_mercosul
>>> print(convert_license_plate_to_mercosul("ABC123"))
"None"
>>> print(convert_license_plate_to_mercosul("abc123"))
"None"

remove_symbols_license_plate

não retorna erros, mas está com formatação incorreta

from brutils import remove_symbols_license_plate
>>> remove_symbols_license_plate("ABC-123")
"ABC123"
>>> remove_symbols_license_plate("abc123")
"abc123"

Comportamento esperado

get_format_license_plate

from brutils import get_format_license_plate
>>> print(get_format_license_plate("ABC1234"))
"LLLNNNN" 
>>> print(get_format_license_plate("abc1234"))
"LLLNNNN"

convert_license_plate_to_mercosul

from brutils import convert_license_plate_to_mercosul
>>> print(convert_license_plate_to_mercosul("ABC1234"))
"ABC1C34"
>>> print(convert_license_plate_to_mercosul("abc1234"))
"ABC1C34"

remove_symbols_license_plate

não retorna erros, mas está com formatação incorreta

from brutils import remove_symbols_license_plate
>>> remove_symbols_license_plate("ABC-1234")
"ABC1234"
>>> remove_symbols_license_plate("abc1234")
"abc1234"

Desktop:

  • Sistema Operacional: Linux Mint 22.3
  • Versão do brutils: 2.5.0

Juliene-Trindade avatar Jul 29 '26 18:07 Juliene-Trindade

bora

thepabloaguilar avatar Aug 29 '26 00:08 thepabloaguilar

🇧🇷 Português ✅ Issue #765 atribuída a @thepabloaguilar. Verifique o guia de contribuição para instruções sobre como submeter sua Pull Request.

🇬🇧 English ✅ Issue #765 assigned to @thepabloaguilar. Check the contributing guide for instructions on submitting your Pull Request.

github-actions[bot] avatar Aug 29 '26 00:08 github-actions[bot]

📌 Esta mensagem está tanto em português quanto em inglês (mais abaixo) — assim todo mundo consegue acompanhar! 📌 This message is in both Portuguese and English (further down) — so everyone can follow along!

🇧🇷 Português

👋 Olá!

Esta issue está obsoleta porque ficou aberta por 45 dias sem atividade. Remova o rótulo de stale para evitar o fechamento automático em mais 15 dias.

🇬🇧 English

Hey there! 👋

This issue is stale because it has been open 45 days with no activity. Remove the stale label to avoid automatic closure in another 15 days.

github-actions[bot] avatar Sep 25 '26 09:09 github-actions[bot]

📌 Esta mensagem está tanto em português quanto em inglês (mais abaixo) — assim todo mundo consegue acompanhar! 📌 This message is in both Portuguese and English (further down) — so everyone can follow along!

🇧🇷 Português

👋 Olá!

Sua issue foi fechada automaticamente por inatividade.

📅 Linha do tempo:

  • Marcada como inativa após 45 dias sem atividade
  • Fechada após mais 15 dias sem resposta

💡 Próximos passos:

  • Se isso ainda for relevante, reabra e forneça uma atualização
  • Considere adicionar mais detalhes ou contexto, se necessário
  • Sinta-se à vontade para criar uma nova issue se a situação tiver mudado

Obrigado pela sua contribuição! 🙏

🇬🇧 English

Hey there! 👋

Your issue was automatically closed due to inactivity.

📅 Timeline:

  • Marked as stale after 45 days of inactivity
  • Closed after another 15 days without response

💡 Next steps:

  • If this is still relevant, please reopen and provide an update
  • Consider adding more details or context if needed
  • Feel free to create a new issue if the situation has changed

Thanks for your contribution! 🙏

github-actions[bot] avatar Oct 10 '26 10:10 github-actions[bot]

📌 Esta mensagem está tanto em português quanto em inglês (mais abaixo) — assim todo mundo consegue acompanhar! 📌 This message is in both Portuguese and English (further down) — so everyone can follow along!

🇧🇷 Português

👋 Olá!

Esta issue está obsoleta porque ficou aberta por 45 dias sem atividade. Remova o rótulo de stale para evitar o fechamento automático em mais 15 dias.

🇬🇧 English

Hey there! 👋

This issue is stale because it has been open 45 days with no activity. Remove the stale label to avoid automatic closure in another 15 days.

github-actions[bot] avatar Oct 27 '26 09:10 github-actions[bot]

📌 Esta mensagem está tanto em português quanto em inglês (mais abaixo) — assim todo mundo consegue acompanhar! 📌 This message is in both Portuguese and English (further down) — so everyone can follow along!

🇧🇷 Português

👋 Olá!

Esta issue está obsoleta porque ficou aberta por 45 dias sem atividade. Remova o rótulo de stale para evitar o fechamento automático em mais 15 dias.

🇬🇧 English

Hey there! 👋

This issue is stale because it has been open 45 days with no activity. Remove the stale label to avoid automatic closure in another 15 days.

github-actions[bot] avatar Oct 30 '26 10:10 github-actions[bot]

📌 Esta mensagem está tanto em português quanto em inglês (mais abaixo) — assim todo mundo consegue acompanhar! 📌 This message is in both Portuguese and English (further down) — so everyone can follow along!

🇧🇷 Português

👋 Olá!

Sua issue foi fechada automaticamente por inatividade.

📅 Linha do tempo:

  • Marcada como inativa após 45 dias sem atividade
  • Fechada após mais 15 dias sem resposta

💡 Próximos passos:

  • Se isso ainda for relevante, reabra e forneça uma atualização
  • Considere adicionar mais detalhes ou contexto, se necessário
  • Sinta-se à vontade para criar uma nova issue se a situação tiver mudado

Obrigado pela sua contribuição! 🙏

🇬🇧 English

Hey there! 👋

Your issue was automatically closed due to inactivity.

📅 Timeline:

  • Marked as stale after 45 days of inactivity
  • Closed after another 15 days without response

💡 Next steps:

  • If this is still relevant, please reopen and provide an update
  • Consider adding more details or context if needed
  • Feel free to create a new issue if the situation has changed

Thanks for your contribution! 🙏

github-actions[bot] avatar Nov 14 '26 11:11 github-actions[bot]

@niltonpimentel02 consegue reabrir a issue? O PR ainda está em aberto

thepabloaguilar avatar Nov 14 '26 15:11 thepabloaguilar