mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 03:32:22 +08:00
Fixed the regex test
This commit is contained in:
parent
749b0c05dc
commit
5f69fc7677
|
@ -32,7 +32,7 @@ export async function handleCustomScraping(
|
||||||
// Check for Google Drive PDF links in the raw HTML
|
// Check for Google Drive PDF links in the raw HTML
|
||||||
const googleDrivePdfPattern =
|
const googleDrivePdfPattern =
|
||||||
/https:\/\/drive\.google\.com\/file\/d\/([^\/]+)\/view/;
|
/https:\/\/drive\.google\.com\/file\/d\/([^\/]+)\/view/;
|
||||||
const googleDrivePdfLink = text.match(googleDrivePdfPattern);
|
const googleDrivePdfLink = url.match(googleDrivePdfPattern);
|
||||||
if (googleDrivePdfLink) {
|
if (googleDrivePdfLink) {
|
||||||
console.log(
|
console.log(
|
||||||
`Google Drive PDF link detected for ${url}: ${googleDrivePdfLink[0]}`
|
`Google Drive PDF link detected for ${url}: ${googleDrivePdfLink[0]}`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user