-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add replace_last and remove_last filters #1422
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
832516f
Add replace_last and remove_last tests
andershagbard e575c1f
Add replace_last and remove_last filters
andershagbard 7754a0f
Use correct method
andershagbard 38b7364
Improve tests
andershagbard effee1e
Update tests
andershagbard b3d14e5
Update tests
andershagbard 973aa9f
Merge branch 'Shopify:master' into master
andershagbard d5ecf00
Update History.md
andershagbard f72cfb1
Delegate functions to corresponding replace functions
andershagbard dc7818f
Update filter to use rindex
andershagbard f5e77b6
Update test to support third argument
andershagbard b5abd14
Remove default value for replacement argument
andershagbard 986391c
start_index will never be -1
andershagbard e3c82a9
Favor unless over if for negative conditions
andershagbard d81f7f0
Add tests to make sure it returns original string on no replacement
andershagbard aead4c5
Refactor filter
andershagbard f17c497
Merge branch 'Shopify:master' into master
andershagbard 5187399
Update lib/liquid/standardfilters.rb
andershagbard 45f186b
Remove string formatter
andershagbard 0f17ed0
Use rindex again
andershagbard 873ca15
Merge remote-tracking branch 'origin/master' into pr-1422
dylanahsmith 50c88fe
History.md: Add missing PR number to previous changelog entry
dylanahsmith 588d407
Fix new changelog entry so it is under unreleased
dylanahsmith 63ae4cc
Remove redundant test assertions
dylanahsmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.