Use String#sub instead of overpowered String#gsub
This commit is contained in:
parent
a5ae73f247
commit
4ac0153125
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def self.expand(name)
|
def self.expand(name)
|
||||||
name.to_s.gsub(REGEXP, METHOD_POSTFIX_EXPANSIONS).to_sym
|
name.to_s.sub(REGEXP, METHOD_POSTFIX_EXPANSIONS).to_sym
|
||||||
end
|
end
|
||||||
private_class_method :expand
|
private_class_method :expand
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue