Skip to content

Commit 7fad0d3

Browse files
waleedlatif1claude
andcommitted
fix(skills): normalize CRLF line endings before parsing SKILL.md frontmatter
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f475ae9 commit 7fad0d3

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/settings/components/skills/components

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/settings/components/skills/components/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const FRONTMATTER_REGEX = /^---\s*\n([\s\S]*?)\n---\s*\n?([\s\S]*)$/
2323
* If no frontmatter is present, the entire text becomes the content field.
2424
*/
2525
export function parseSkillMarkdown(raw: string): ParsedSkill {
26-
const trimmed = raw.trim()
26+
const trimmed = raw.replace(/\r\n/g, '\n').trim()
2727
const match = trimmed.match(FRONTMATTER_REGEX)
2828

2929
if (!match) {

0 commit comments

Comments
 (0)