fix: regex lookbehind not supported by RSSBud (#11910)

https://caniuse.com/js-regexp-lookbehind
This commit is contained in:
cayZ 2023-02-20 03:42:51 -06:00 committed by GitHub
parent 0b33eb37b6
commit d6a13dc24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module.exports = {
title: '教务处',
docs: 'https://docs.rsshub.app/university.html#ha-er-bin-li-gong-da-xue',
source: '/homepage/*',
target: (params, url) => `/hrbust/jwzx/${url.match(/(?<=columnId=)\d+/)}`,
target: (params, url) => `/hrbust/jwzx/${new URL(url).searchParams.get('columnId')}`,
},
],
},