Skip to content

Commit

Permalink
Close #2 fixing the final comment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaievns committed Jun 10, 2012
1 parent 34ba117 commit f9ef513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colorifier.coffee
Expand Up @@ -96,7 +96,7 @@ class Colorifier extends Element
if chunks[1]
regex = new RegExp("(.?)(#{escape(chunks[0])}[\\s\\S]*?#{escape(chunks[1])})(.*)", "mg")
else
regex = new RegExp("(.?)(#{escape(chunks[0])}.*?)(\n)", "g")
regex = new RegExp("(.?)(#{escape(chunks[0])}.*?)(\n|$)", "g")

replacements.push([regex, "comment", "$1 $3"])

Expand Down

0 comments on commit f9ef513

Please sign in to comment.