about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-07-18 19:33:59 -0400
committerZach DeCook <zachdecook@gmail.com>2018-07-18 19:33:59 -0400
commit2662d8ec7f2154c5e8cbf3a57d14b82692608d1c (patch)
treebd13e493351f4d3376f04749904c6a94820a0307
parent3fd4b1dac83d0c5176e21a447ec6638e599d945a (diff)
downloadprosongsa-2662d8ec7f2154c5e8cbf3a57d14b82692608d1c.tar.gz
* Key parsing: Ability to parse {Key:D mixolydian}
-rw-r--r--page.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/page.php b/page.php
index f0dcc3d..85b657f 100644
--- a/page.php
+++ b/page.php
@@ -127,7 +127,7 @@ function load_song( $number, $transp = 0 )
 		}
 
 		if ( preg_match( "/\{p?\d*\((.+m?)\)\}/", $line, $matches)
-			|| preg_match("/^{Key: ?(.*)}/i", $line, $matches)
+			|| preg_match("/^{Key: ?([^ ]*).*}/i", $line, $matches)
 		)
 		{
 			if ( isset( $suggestedSong[$current_song]))