Brickster / pretty-markdown

Sublime Text plugin for beatifying a markdown file when saving.
MIT License
0 stars 0 forks source link

convert_horizontal_rules thinks '^^^' is a valid rule #6

Closed Brickster closed 10 years ago

Brickster commented 10 years ago

A regex pattern in horizontal_rule_utils contained the range `[-_]'. While the intention was the match a , -, or , a range from * to was created. The bug was initially missed since - is between * and _ on the ASCII table.

The regex was changed to contain [*\-_]. Note: the escaped * was not necessary.