nebulab / erb-formatter

Format ERB files with speed and precision
MIT License
135 stars 22 forks source link

Inline Javascript can confused the parser #54

Open genintho opened 2 months ago

genintho commented 2 months ago

Thank you for this tool.

Found a bug caused by using inline JavaScript in an erb file. To reproduce, add the code to any erb file:

<script>
    var li = $('<li>');
</script>

Screenshot 2024-06-24 at 4 35 30 PM