Skip to content

Commit

Permalink
Update CiteMap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpower678 committed May 14, 2024
1 parent 6527aca commit 97743a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Core/CiteMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 97743a4

Please sign in to comment.