Home

starfederation/datastar

Status:Indexed
Analyzed 3d ago3K+ starsTypeScript

The hypermedia framework.

Back to Issues
#1106
Moderate

Ignore dollar sign in string literals

View on GitHub

Summary

Modify the regular expression used for parsing data attributes to correctly distinguish between intended variable interpolations (like `$variable`) and literal dollar signs within string values. This prevents unexpected behavior where literal '$' characters are treated as property accessors.

Skills Required

TypeScriptRegular ExpressionsJavaScript

Labels

enhancement