Replies: 3 comments 4 replies
-
This option is for URL schemes (protocols), not folders. This doesn't mean there's no solution to your problem though. I don't have an answer offhand, but I suggest that you look at the various other filtering and transformation options in the documentation for ideas. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Check out the "transformations" section, which covers what you're looking to do. |
Beta Was this translation helpful? Give feedback.
2 replies
-
My first question is how you can have unescaped slashes in the middle of a
regular expression. Sure enough you said it wouldn't parse it — I think you
mean javascript wouldn't parse it.
Second, it is unlikely that your URLs have "../public" in them, although it
is not impossible. That sounds more like a filesystem relative path to
where your files are on the hard drive, which is not the same thing. You're
validating what is in the src attribute, not a filesystem path.
…On Tue, Feb 8, 2022 at 5:22 PM supercain ***@***.***> wrote:
It doesnt make any sense, I tested the regex and its correct.
—
Reply to this email directly, view it on GitHub
<#536 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27LQEVQHTRLIZMS2YPTU2GJQRANCNFSM5NZLLV4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to allow only images that are located here http://example.com/images/ so I did this:
allowedSchemes: ['images/']
but it doesnt seem to work since it allows images from any directory. Is there a way to do it?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions