Correctly exclude evaled code

* The previous regexp was ment to only match `(eval)` literally.
This commit is contained in:
Markus Schirp 2015-10-27 20:46:31 +00:00
parent 4777742157
commit f2d7cdb968
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
# v0.8.7 2015-10-30
* Fix blackliting regexp to correctly match the String `(eval)` absolutely.
# v0.8.6. 2015-10-27
* Add mutation from `Date.parse` to more strict parsing methods #448

View file

@ -7,7 +7,7 @@ module Mutant
# Methods within rbx kernel directory are precompiled and their source
# cannot be accessed via reading source location. Same for methods created by eval.
BLACKLIST = %r{\Akernel/|(eval)}.freeze
BLACKLIST = %r{\A(kernel/|\(eval\)\z)}.freeze
# Enumerate matches
#