Skip to content
Permalink
Browse files

Fix Regex.ACCEPTS: NDF does not set $/ #2176

  • Loading branch information...
ryn1x
ryn1x committed Aug 20, 2018
1 parent 5ee9afa commit cf1df1d787b75817ffd74feae459fde8f2f98faa
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/Regex.pm6
@@ -34,7 +34,8 @@ my class Regex { # declared in BOOTSTRAP
}

#?if !jvm
multi method ACCEPTS(Regex:D \SELF: Uni:D \uni) { # RT #130458
multi method ACCEPTS(Regex:D \SELF: Uni:D \uni) {
$/ := nqp::getlexrelcaller(nqp::ctxcallerskipthunks(nqp::ctx()),'$/');
self.ACCEPTS(uni.Str)
}
#?endif

0 comments on commit cf1df1d

Please sign in to comment.
You can’t perform that action at this time.