[
https://issues.apache.org/jira/browse/CAMEL-25374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-25374:
-----------------------------------
Assignee: Claus Ibsen
> camel-jbang - quote characters in a file include/exclude value are reported
> with the line to write
> --------------------------------------------------------------------------------------------------
>
> Key: CAMEL-25374
> URL: https://issues.apache.org/jira/browse/CAMEL-25374
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.23.0
>
>
> A model wrote the include regex of a file endpoint with backslash-escaped
> quotes in a plain YAML value:
> {code:yaml}
> parameters:
> include: \".*\\.json\"
> {code}
> In YAML a backslash before a quote is not escaping in a plain value: the
> quotes and backslashes are part of the regex, and no file matches. The
> validator reported the doubled backslash (CAMEL-24854) and suggested
> {{include='\".*\.json\"'}}, which still has the stray quote characters. Found
> in the local-model benchmark (r5, connect-file-processing steps 2 and 3, both
> used all 20 tool calls; the model wrote the value six times).
> Proposal: before the backslash check, a value of include/exclude that starts
> or ends with a quote character (with or without a backslash) is reported as
> such, with the line to write: {{include: '.*\.json'}} (single quotes, one
> backslash before the dot).
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)