[BUG] slugify custom separators strip valid input characters
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start with crewai/utilities/string_utils.py and inspect slugify to see how it normalizes and joins text segments. Add regression cases for the custom separators shown in the issue and for existing default behavior, then run the relevant tests. Done when valid input characters are preserved, separators are treated literally, and the default behavior remains covered.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
slugify treats the separator as characters to strip and as a regex replacement string, rather than as a literal delimiter. A separator containing letters can remove letters from the original input even when that input needs no normalization.
Reproduction
from crewai.utilities.string_utils import slugify
slugify('sand', separator='and') # 's', expected 'sand'
slugify('box x x', separator='x') # 'bo', expected 'boxxxxx'
slugify('hello world', separator='\\') # re.PatternError
Verified against main commit 305d6a0 on Windows with Python 3.13.9 by loading the unchanged utility module directly. The function has no third-party imports. Searches for slugify in issues and open PRs found no matching report.
Proposed fix
Join the non-empty normalized text segments with the literal separator. This preserves existing underscore/hyphen behavior without stripping valid letters or interpreting backslashes. Add regression cases for custom separators and existing default behavior.
This report and proposed fix are AI-assisted (Codex). The llm-generated label is requested as required by CONTRIBUTING.md.
- Lenguaje dominante
- Python
- Estrellas
- 60.6k
- Forks
- 9.1k
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 214
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de crewAIInc/crewAI
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Feature request: GoldenDirectiveTool (harmonic relationship score, full vs cropped reporting)Abiertofeature-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
crewAIInc/crewAI#9200 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[FEATURE] Docs: ApifyActorsTool example with a typed-input ActorPosiblemente ocupada @johnisanerd la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
crewAIInc/crewAI#9132 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG] Scrape tools reject the documented cookies mapping and drop cookies when the URL is passed at runtimePosiblemente ocupada @Luckyou-d la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionPosiblemente ocupada @gokay-ai la tomó hace 12 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
crewAIInc/crewAI#8761 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de crewAIInc/crewAI
Issues similares
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mealie-recipes/mealie#9117 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
freelawproject/courtlistener#8406 ·
Los mantenedores suelen responder en 2 días
-
good first issue help wanted level 1 wocs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
GianlucaBave/murmury#49 ·
Los mantenedores suelen responder en 1 día
-
regression skipped skipped_bmg
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
intel/torch-xpu-ops#6142 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
good first issue help wanted python up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
andrewsiah/agentswarm-data-tasks#122 ·
Los mantenedores suelen responder en 1 día