Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Acme::Addslashes to work on Rakudo

  • Loading branch information...
commit ff205dc8caecf836c4a7428763ea85e6afe1dfec 1 parent e9478e5
GlitchMr authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Acme/Addslashes.pm
View
4 lib/Acme/Addslashes.pm
@@ -1,4 +1,4 @@
module Acme::Addslashes;
-sub addslashes is export (Str $string) {
- $string.subst(/ (.) /, { "$0\c[COMBINING LONG SOLIDUS OVERLAY]" }, :g);
+sub addslashes(Str $string) is export {
+ $string.subst(/ <after . > /, "\c[COMBINING LONG SOLIDUS OVERLAY]", :g);
}
Please sign in to comment.
Something went wrong with that request. Please try again.