From ccb92df2f094acc9c2d6e0706b3e2510ea9261d6 Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Wed, 8 Jan 2020 11:45:20 +0100 Subject: [PATCH] Also include "_" in Str.raku fastpath --- src/core.c/Str.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c/Str.pm6 b/src/core.c/Str.pm6 index 53850b6e667..8f54941f448 100644 --- a/src/core.c/Str.pm6 +++ b/src/core.c/Str.pm6 @@ -338,7 +338,7 @@ my class Str does Stringy { # declared in BOOTSTRAP multi method raku(Str:D: --> Str:D) { nqp::chars(self) ?? nqp::findnotcclass( - nqp::const::CCLASS_ALPHANUMERIC,self,0,nqp::chars(self) + nqp::const::CCLASS_WORD,self,0,nqp::chars(self) ) == nqp::chars(self) ?? nqp::concat('"',nqp::concat(self,'"')) # fast path alpha !! self!rakufy # slow path non-alpha