mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
f099e4cb3a
* fix(toutiao): move NON_TITLE_LINES inside function scope NON_TITLE_LINES was defined outside parseToutiaoArticlesText() as a module-level const. When the function is serialized via .toString() and injected into browser evaluate context, outer scope variables are not available, causing 'NON_TITLE_LINES is not defined' error. Fix: move NON_TITLE_LINES inside the function so it's included in the serialized string. * test(toutiao): cover serialized articles parser --------- Co-authored-by: sontjer <sontjer@github.com> Co-authored-by: jackwener <jakevingoo@gmail.com>