Paillasse/design/_build/pro.js
2026-10-06 23:28:18 +02:00

4 lines
No EOL
827 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var rot=/^(?:[a-z0-9]+:)?-?rotate-(?:1|2|3|6|12|\[[^\]]+\])$/,tr=/^(?:(?:sm|md|lg|xl|2xl):)?-?translate-[xy]-(?:3|4|6|8|10|12|16)$/;var fix=h=>{h=h.replace(/Parce qu’un BTS peut changer une vie\. Il a changé la mienne\./g,'Parce que les études peuvent changer une vie. Elles ont changé la mienne, pourquoi pas la vôtre ?');
h=h.replace(/<span[^>]*class="[^"]*(?:etoile flotte|zigzag absolute)[^"]*"[^>]*><\/span>/g,'');
h=h.replace(/class="([^"]*)"/g,(m,c)=>'class="'+c.split(/\s+/).filter(x=>x&&!rot.test(x)&&!tr.test(x)).map(x=>x.replace(/^((?:[a-z]+:)?)shadow-\[(?:6|8|10)px_(?:6|8|10)px_0px_(#[0-9A-Fa-f]+)\]$/,'$1shadow-[4px_4px_0px_$2]').replace(/^xl:text-8xl$/,'xl:text-7xl').replace(/^xl:text-\[7\.5rem\]$/,'xl:text-7xl')).join(' ')+'"');
return h.replace(/'lg:translate-y-4'|'lg:translate-y-6'/g,"''");};