Improve reliability of embed regex (missing start char)

This commit is contained in:
Tom Moor
2023-07-08 12:04:03 -04:00
parent 6bc1b789ee
commit 98a182c892
10 changed files with 13 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ function Figma(props: Props) {
Figma.ENABLED = [
new RegExp(
"https://([w.-]+\\.)?figma\\.com/(file|proto)/([0-9a-zA-Z]{22,128})(?:/.*)?$"
"^https://([w.-]+\\.)?figma\\.com/(file|proto)/([0-9a-zA-Z]{22,128})(?:/.*)?$"
),
];