Skip to content

Commit

Permalink
fix JSON val have "
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackxwb committed May 15, 2024
1 parent e6bd429 commit eb74930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/JSONTranslationFile/MergeTranslationFilesV2.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@
* 分析单行数据
*/
const objStart = /.*\{.*/
const objKeyVal = /.*"[^"]*".?\:.?"[^"]*".*/
const objKeyVal = /.*"[^"]*".?\:[^"]*"(.*)".*/
const objEnd = /.*\}.*/

const objStartGetKey = /.*"([^"]*)".?\:/
const objStartGetVal = /\:.*"([^"]*)"/
const objStartGetVal = /\:[^"]*"(.*)"/

function pOneLineData(str) {
let isStart = objStart.test(str);
Expand Down

0 comments on commit eb74930

Please sign in to comment.