diff --git a/app/src/Core/CiteMap.php b/app/src/Core/CiteMap.php index 1cfd320c..a3f9be40 100644 --- a/app/src/Core/CiteMap.php +++ b/app/src/Core/CiteMap.php @@ -1041,7 +1041,7 @@ protected static function parseCSConfig( $string ) { protected static function parseLuaObject( $string ) { $parseRegex = - '/\s*(?:\[(\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")\]\s*=|([^\s\'"]*)\s*=)?\s*(\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*"|(\{(?:"(?:\\\\"|[^"])*?"|\'(?:\\\\\'|[^\'])*?\'|[^{}\'"]*|(?4))*?\})|true|false|null|nil|[0-9a-fx]*(?:\.[0-9a-fx]*)?)\s*[,;]?(?:\s*\-\-(?:\[\[(?:.|\n)*?\]\]|.*$)|\s*$)/im'; + '/\s*(?:\[(\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")\]\s*=|([^\s\'"]*)\s*=)?\s*(\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*"|(\{(?:"(?:\\\\"|[^"])*?"|\'(?:\\\\\'|[^\'])*?\'|[^{}\'"]*|(?4))*?\})|true|false|null|nil|[0-9a-fx]*(?:\.[0-9a-fx]*)?)\s*[,;]?(?:\s*\-\-(?:\[\[(?:.|\n)*?\]\]|.*$)|\s*)/im'; $string = trim( $string ); if( substr( $string, 0, 1 ) == "{" ) { $returnArray = [];