diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-03-19 19:51:50 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-03-19 19:51:50 -0400 |
| commit | d37d9f3ba766641577959ce6e83a771a334c33d2 (patch) | |
| tree | c7532a90fa169dfbee69808eca700d10b68cbf6c /page.php | |
| parent | f93c4991ddf60232d30ac03a001bf3218c827001 (diff) | |
| download | prosongsa-d37d9f3ba766641577959ce6e83a771a334c33d2.tar.gz | |
* Allow B indexed list items
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 7f595d0..5d1f15d 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?C?\d+)\. )", $line, $matches)) + if( preg_match("(^(X?C?B?\d+)\. )", $line, $matches)) { $toc .= "<li><a href=?song=$matches[1]>" . $line . "</a>"; } @@ -91,7 +91,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?C?\d+)\. )", $line, $matches) ) + if ( preg_match("(^(X?C?B?\d+)\. )", $line, $matches) ) { $allsongs[$matches[1]] = $line; $current_song = $matches[1]; |
