« Russian postal code » : différence entre les versions

De Semantic MediaWiki - Sandbox

(typo)
Balise : Éditeur de wikicode 2017
m (typo)
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 2 : Ligne 2 :
[[Obeys regex pattern::^\d{6}$]]
[[Obeys regex pattern::^\d{6}$]]


However, the datatype [[Special:Types/Code|Code]], for some reason, cannot hold a regular expression. But [[Special:Types/String|String]] can.
However, the datatype [[Special:Types/Code|Code]], for some reason, cannot hold a regular expression on some wikis (but [[Special:Types/String|String]] can).
 
Nevertheless, this wiki works as extected. Must be some configuration setting.

Dernière version du 4 novembre 2018 à 17:09

Russian postal code consists of six digits, e.g. 654038, and therefore follows this pattern:

^\d{6}$

However, the datatype Code, for some reason, cannot hold a regular expression on some wikis (but String can).

Nevertheless, this wiki works as extected. Must be some configuration setting.

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.