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 ea856281b6fde8acfc871bf12228f52a18a85101..ef730a49cccf4a54229ead63436d141b919c66ea 100644 (file)
@@ -1,7 +1,7 @@
 <(common.inc.plp)><:
 
 my $source = $Request;
 <(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
 
 if ($source =~ s{(?<=\Q.inc.pl\E)/jsonp?$}{} and -r $source) {
        # convert perl include to json construct