Skip to content

Commit

Permalink
maint: remove redundant escaping in ansi2html.sh
Browse files Browse the repository at this point in the history
* scripts/ansi2html.sh: The regexp in a s/regexp/replacement/
sed expression doesn't need the & escaped, as it only has
specical significance in the replacement.
  • Loading branch information
pixelb committed Sep 25, 2013
1 parent 8ad4baa commit 2f026da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ansi2html.sh
Expand Up @@ -189,7 +189,7 @@ s#[^\x08]\x08##g; t rm_bs
# Normalize the input before transformation
sed "
# escape HTML
s#\&#\&amp;#g; s#>#\&gt;#g; s#<#\&lt;#g; s#\"#\&quot;#g
s#&#\&amp;#g; s#>#\&gt;#g; s#<#\&lt;#g; s#\"#\&quot;#g
# normalize SGR codes a little
Expand Down

0 comments on commit 2f026da

Please sign in to comment.