Spaces:
Sleeping

Crislene commited on
Commit
3d71964
·
verified ·
1 Parent(s): 13b725d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def analisar_conteudo_do_curriculo(texto):
43
 
44
  for categoria, config in CONFIG["palavras-chave"].items():
45
  for termo in config["termos"]:
46
- contagem = len(re.findall(rf'\b{termo}\b', texto))
47
  if contagem > 0:
48
  correspondencias.append({
49
  "termo": termo,
 
43
 
44
  for categoria, config in CONFIG["palavras-chave"].items():
45
  for termo in config["termos"]:
46
+ contagem = len(re.findall(rf'\b{re.escape(termo.lower())}\b', texto.lower()))
47
  if contagem > 0:
48
  correspondencias.append({
49
  "termo": termo,