Skip to content

Commit 360004a

Browse files
piktochart.com: fix regexp for create subdomains, add test URLs (#590)
* pittochart.com: fix regexp for create subdomains, add test URLs * piktochart.com: add height * try to fix piktochart's height --------- Co-authored-by: Ivan Paramonau <i.paramonau@gmail.com>
1 parent 69b71d9 commit 360004a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<div class="piktowrapper-embed" data-uid="<%= id %>" style="height: 300px; position: relative;"><div class="pikto-canvas-wrap"><div class="pikto-canvas"></div></div></div>
1+
<div class="piktowrapper-embed" data-uid="<%= id %>"><div class="pikto-canvas-wrap"><div class="pikto-canvas"></div></div></div>
22
<script>(function(d){var js, id="pikto-embed-js", ref=d.getElementsByTagName("script")[0];if (d.getElementById(id)){return;} js= d.createElement("script"); js.id=id; js.async=true; js.src="https://create.piktochart.com/assets/embedding/embed.js"; ref.parentNode.insertBefore(js, ref);}(document));</script>

plugins/domains/piktochart.com/piktochart.com.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22

3-
re: /^https?:\/\/(?:magic|create)\.piktochart\.com\/output\/(\d+\-[\-a-zA-Z-0-9_]+)/i,
3+
re: /^https?:\/\/(?:magic|create)\.piktochart\.com\/output\/([\-a-zA-Z-0-9_]+)/i,
44

55
mixins: [
66
"*"
@@ -13,12 +13,15 @@ export default {
1313
id: urlMatch[1]
1414
},
1515
type: CONFIG.T.text_html,
16-
rel: [CONFIG.R.reader, CONFIG.R.ssl],
16+
rel: [CONFIG.R.reader, CONFIG.R.ssl]
1717
};
1818
},
1919

2020
tests: [
21-
"https://magic.piktochart.com/output/16505417-projet-immigration-copy"
22-
]
21+
"https://magic.piktochart.com/output/16505417-projet-immigration-copy",
22+
"https://magic.piktochart.com/output/14330224-descripciones-fisicas",
2323

24+
"https://create.piktochart.com/output/38d889d24156-youtube-pitch-deck",
25+
"https://create.piktochart.com/output/04c845534560-buenas-practicas-en-la-elaboracion-de-alimentos-en-el-hogar"
26+
]
2427
};

0 commit comments

Comments
 (0)