jiangmiao / simple-javascript-indenter

A vim javascript indent script
http://www.vim.org/scripts/script.php?script_id=3227
72 stars 8 forks source link

Errors occur when dealing with lines with regex. #1

Closed whentp closed 13 years ago

whentp commented 13 years ago

Errors occur when dealing with lines with regex.

Reproduce this bug:

the 3rd line: function escapeattr(b) { return b ? b.replace(/([.#[]])/ig, "\$1") : "" }

jiangmiao commented 13 years ago

Thank you whentp, The bug has fixed at v1.3.4