masterakay
(Aekansh Dixit)
January 27, 2019, 6:50am
1
Continuing the discussion from Rebake all posts matching a pattern :
Can I have a rebake_match[""]
pattern for posts that contain an image? I am adding an s3_cdn_url to my S3 bucket settings and it requires me to rebake all old posts.
Reference:
https://meta.discourse.org/t/s3-upload-with-vanity-domains
masterakay
(Aekansh Dixit)
January 27, 2019, 12:58pm
2
I think I found the solution courtesy to this thread on Stack Overflow.
rebake_match["!\[[^\]]+\]\([^)]+\)",regex]
I hope it helps someone out.
3 Likes
That looks like it should work for that particular syntax. But be aware that there is other syntax that regex pattern will not match.
https://spec.commonmark.org/0.28/#images
3 Likes
system
(system)
Closed
February 26, 2019, 9:58pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.