-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes the refresh_pattern template
When using a regexp (when case_sensitive is set to false) the -i should be placed BEFORE the $name and not after Also fixed that no space was used between the max and options field, added rspec for options
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# <%= @comment %> | ||
refresh_pattern <%= @pattern %>: <%= @case_sensitive?'':'-i ' %><%= @min %> <%= @percent %>% <%= @max %><%= @options ? @options:'' %> | ||
refresh_pattern <%= @case_sensitive?'':'-i ' %><%= @pattern %>: <%= @min %> <%= @percent %>% <%= @max %><% if @options != '' %> <%= @options %><% end %> |