diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-03-11 18:40:38 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-03-11 18:40:38 -0400 |
| commit | 94efcb6043d4f80a05912ac51fce7a1e13e5f2cc (patch) | |
| tree | b1b800b2e4d58fae4ac77b72f329ea22e83def5d /page.php | |
| parent | 0479901dfad12f145197c63a53b144f5e250c8a4 (diff) | |
| download | prosongsa-94efcb6043d4f80a05912ac51fce7a1e13e5f2cc.tar.gz | |
- Prosongsa: Allow C1, C2, ... indexed songs
Diffstat (limited to 'page.php')
| -rw-r--r-- | page.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/page.php b/page.php index c77b40e..a3fb4c5 100644 --- a/page.php +++ b/page.php @@ -20,7 +20,7 @@ function toc(){ mb_convert_encoding( $line, "HTML-ENTITIES", "UTF-8" ) ); $matches = array(); - if( preg_match("(^(X?\d+)\. )", $line, $matches)) + if( preg_match("(^(X?C?\d+)\. )", $line, $matches)) { $toc .= "<li><a href=?song=$matches[1]>" . $line . "</a>"; } @@ -88,7 +88,7 @@ function load_song( $number, $transp = 0 ) // If we see a number, then that is what song we are on. $matches = array(); - if ( preg_match("(^(X?\d+)\. )", $line, $matches) ) + if ( preg_match("(^(X?C?\d+)\. )", $line, $matches) ) { $allsongs[$matches[1]] = $line; $current_song = $matches[1]; |
