mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
feat: replace require with import 7/n
This commit is contained in:
@@ -2,7 +2,7 @@ import cache from '@/utils/cache';
|
||||
import got from '@/utils/got';
|
||||
import { topicDataHanding, constructTopicEntry } from './utils';
|
||||
import { load } from 'cheerio';
|
||||
const dayjs = require('dayjs');
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const urlRegex = /(https?:\/\/[^\s"'<>]+)/g;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user