Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix uncommenting with irregular white spaces (#82)
Allow stripping white spaces on the left and right independently. Also, make sure the stripping is not reverted by subsequent lines which do have white spaces. The following cases were broken and is now fixed: Before this change: 1. ^//foo$ -> ^oo$ ^// bar$ ^bar$ 2. ^/*foo */$ -> ^foo $ 3. ^/* foo*/$ -> ^/* /1* foo*/ */$ After this change: 1. ^//foo$ -> ^foo$ ^// bar$ ^ bar$ 2. ^/*foo */$ -> ^foo$ 3. ^/* foo*/$ -> ^foo$
- Loading branch information