masterakay
(Aekansh Dixit)
2019 年 1 月 27 日午前 6:50
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)
2019 年 1 月 27 日午後 12:58
2
I think I found the solution courtesy to this thread on Stack Overflow.
rebake_match["!\[[^\]]+\]\([^)]+\)",regex]
I hope it helps someone out.
「いいね!」 3
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
system
(system)
クローズされました:
2019 年 2 月 26 日午後 9:58
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.