Skip to content

Conversation

jmhain
Copy link
Collaborator

@jmhain jmhain commented Sep 19, 2025

No description provided.

s.push(ch);
}
} else if ch != '}' {
s.push(ch);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mustache format check is done elsewhere by regular expression, should we add another case for ch == '\n'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what regular expression you're referring to. I can't think of any particular reason to block multi-line {{ }} other than it doesn't appear to currently work in the product.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, you have more context than I do here. The regular expression I'm referring to pulls out the template keys for replacement. I was thinking this could be a good place to throw an error since it's easy to detect multiline mustaches, but we can likely just as easily detect a missing template key in this case.

@jmhain jmhain merged commit 69bf16a into main Sep 19, 2025
19 checks passed
@jmhain jmhain deleted the joey/mustache branch September 19, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants