source: recognise [sample] text include references
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 17 May 2017 23:37:29 +0000 (01:37 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 17:29:34 +0000 (19:29 +0200)
source.plp

index ea85628..ef730a4 100644 (file)
@@ -1,7 +1,7 @@
 <(common.inc.plp)><:
 
 my $source = $Request;
-my $incname = qr{ [a-z][/a-z0-9_.-]* \.(?:plp?|css|js) }x;
+my $incname = qr{ [a-z][/a-z0-9_.-]* \.(?:plp?|css|js|txt) }x;
 
 if ($source =~ s{(?<=\Q.inc.pl\E)/jsonp?$}{} and -r $source) {
        # convert perl include to json construct