-
Notifications
You must be signed in to change notification settings - Fork 4
rgxExclamationPoint
Loïc Antignac edited this page Dec 31, 2020
·
10 revisions
const rgxExclamationPoint = new RegExp(`(?<!\u00a0|^)\\${data.exclamationPoint}|\\${data.exclamationPoint}(?! |$)`, 'gmi');
Regex générée :
/(?<!\u00a0|^)\!|\!(?! |$)/gim
Règle typographique :
Une espace insécable avant, une espace après.
Détecte :
- un point d’exclamation
!non précédé par une espace insécable
Exceptions :- s’il débute la chaîne
- ou un point d’exclamation non suivi par une espace
Exceptions :- s’il termine la chaîne
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