Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove the undef term from November

  • Loading branch information...
commit d598e32327b51a254b1c71fda2a82c4b5b4bc3f1 1 parent a194133
@moritz moritz authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  lib/November/Cache.pm
  2. +3 −3 lib/Text/Markup/Wiki/MediaWiki.pm
View
2  lib/November/Cache.pm
@@ -15,7 +15,7 @@ method set-cache-entry( $key, $value ) {
method get-cache-entry( $key ) {
my $file = self.cache-dir ~ '/' ~ $key;
- return undef unless $file ~~ :e;
+ return Nil unless $file ~~ :e;
my $string = slurp( $file );
return $string;
}
View
6 lib/Text/Markup/Wiki/MediaWiki.pm
@@ -32,12 +32,12 @@ class Text::Markup::Wiki::MediaWiki {
if @parlist[$ix] ~~ /^'<p>'/ && @parlist[$ix+1] ~~ /^'<p>'/ {
@parlist[$ix+1] = @parlist[$ix] ~ @parlist[$ix+1];
@parlist[$ix+1] .= subst( '</p><p>', ' ' );
- @parlist[$ix] = undef;
+ @parlist[$ix] = Mu;
}
elsif @parlist[$ix] ~~ /^'<uli>'/ && @parlist[$ix+1] ~~ /^'<uli>'/
|| @parlist[$ix] ~~ /^'<oli>'/ && @parlist[$ix+1] ~~ /^'<oli>'/ {
@parlist[$ix+1] = [~] @parlist[$ix], "\n", @parlist[$ix+1];
- @parlist[$ix] = undef;
+ @parlist[$ix] = Mu;
}
}
@@ -127,7 +127,7 @@ class Text::Markup::Wiki::MediaWiki {
}
elsif $token<wikilink> {
take defined $link_maker
- ?? $link_maker(~$token<wikilink><page>, undef)
+ ?? $link_maker(~$token<wikilink><page>, Mu)
!! ~$token<wikilink>;
}
elsif $token<extlink> {
Please sign in to comment.
Something went wrong with that request. Please try again.