[BUG] slugify custom separators strip valid input characters
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 60.6k
- Fork
- 9.1k
- Merge medio
- 1g 4h
- PR unite (30g)
- 214
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di crewAIInc/crewAI
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Feature request: GoldenDirectiveTool (harmonic relationship score, full vs cropped reporting)Apertafeature-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
crewAIInc/crewAI#9200 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[FEATURE] Docs: ApifyActorsTool example with a typed-input ActorForse già presa @johnisanerd l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
crewAIInc/crewAI#9132 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Scrape tools reject the documented cookies mapping and drop cookies when the URL is passed at runtimeForse già presa @Luckyou-d l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionForse già presa @gokay-ai l’ha presa 12 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
crewAIInc/crewAI#8761 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di crewAIInc/crewAI
Issue simili
-
bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
mealie-recipes/mealie#9117 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
freelawproject/courtlistener#8406 ·
I maintainer di solito rispondono entro 2 giorni
-
good first issue help wanted level 1 wocs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GianlucaBave/murmury#49 ·
I maintainer di solito rispondono entro 1 giorno
-
regression skipped skipped_bmg
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
intel/torch-xpu-ops#6142 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
good first issue help wanted python up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
andrewsiah/agentswarm-data-tasks#122 ·
I maintainer di solito rispondono entro 1 giorno