-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs 6 #17526
Update docs 6 #17526
Conversation
rishijain
commented
Nov 6, 2014
- Added example of squish!
- Added example of remove
- Added example of remove!
- Added test case for removal of multiple occurrences of pattern.
@@ -273,7 +279,7 @@ def test_remove! | |||
assert_equal "This is a good day", original.remove!(" to ", /die/) | |||
assert_equal "This is a good day", original | |||
end | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a line break it's whitespace. Looks like you have an extra added space or 2 😸
I add this to my .vimrc to highlight whitespace in bright red. Hope that helps!
" Hightlight whitespace and tabs
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And yes indeed. There were whitespaces. Thanks @eileencodes
Can you please squash all the commits to one? |
Added a new PR (#17532) with squashed commits. |
Just force push in this branch, i closed the other. Without the ci_skip since there is a new test. |
7730184
to
3f58df3
Compare
Done. |
Please remove the [ci_skip] from the commit message. |
pattern removal added example for string#remove and test case for remove of multiple occurence of pattern removed extra whitespaces
3f58df3
to
54a9653
Compare
Done. Thankyou @seuros for the patience. |