Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
  • Loading branch information
sakurayang and TonyRL authored Jan 15, 2024
1 parent fd8ab65 commit e1f65bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/v2/luogu/daily.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module.exports = async (ctx) => {
const title = $('head title').text();

const injectionScript = $('head script:contains("window._feInjection")').text();
const josnRaw = injectionScript.match(/window\._feInjection = JSON\.parse\(decodeURIComponent\("(.*?)"\)\);/)[1];
const jsonDecode = JSON.parse(decodeURIComponent(josnRaw));
const jsonRaw = injectionScript.match(/window\._feInjection = JSON\.parse\(decodeURIComponent\("(.*?)"\)\);/)[1];
const jsonDecode = JSON.parse(decodeURIComponent(jsonRaw));

const mdRaw = jsonDecode.currentData.post.content;

Expand Down

0 comments on commit e1f65bd

Please sign in to comment.