-
Notifications
You must be signed in to change notification settings - Fork 3
rgxCloseHook
Loïc Antignac edited this page Dec 31, 2020
·
11 revisions
const rgxCloseHook = new RegExp(`(?<=[ |\u00a0])\\${data.closeHook}|(?<!\\${data.closeHook})\\${data.closeHook}(?=[a-zÀ-ú0-9]| $|\u00a0$)`, 'gmi');Regex générée :
/(?<=[ |\u00a0])\]|(?<!\])\](?=[a-zÀ-ú0-9]| $|\u00a0$)/gim
Règle typographique :
Pas d’espace avant, une espace après.
Détecte :
-
un crochet fermant
]précédé par une espace sécable ou insécable -
ou un crochet fermant suivi par des lettres, des chiffres ou par une espace finale sécable ou insécable
Exceptions :
- s’il est précédé par un autre crochet fermant
Ex :[[valeur]]texte(cas du deuxième crochet fermant)
- s’il est précédé par un autre crochet fermant
SPTE
Présentation
Comment l’utiliser
- Le fonctionnement d’SPTE
- Accéder aux paramètres
- Les paramètres
- Quelles autorisations demande SPTE
- Compatibilité Dark Reader
Contribuer
Code