Skip to content
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

Replace the last occurrence of 'min' in instead of the first #6

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

pcardune
Copy link
Contributor

Previously, if you used any of the words in this list
http://www.morewords.com/contains/min/ to name your bundle (for
example, minimal.min.js) then this plugin would strip the first min
resulting in a file named imal.min.js which makes no sense.

This change switches the min replacement to look for the last
occurrence of min instead of the first, since that is the more common
naming convention for minified files.

…first

Previously, if you used any of the words in this list
http://www.morewords.com/contains/min/ to name your bundle (say, for
example, `minimal.min.js`) then this plugin would strip the first min
resulting in a file named `imal.min.js` which makes no sense.

This change switches the `min` replacement to look for the last
occurrence of min instead of the first, since that is the more common
naming convention for minified files.
@leftstick leftstick merged commit 6d5490a into leftstick:master Sep 23, 2016
@leftstick
Copy link
Owner

It's really good PR, thanks @pcardune

@pcardune pcardune deleted the replace-last-min branch September 23, 2016 01:11
leftstick added a commit that referenced this pull request Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants