Différences entre les versions de « Russian postal code »

De Semantic MediaWiki - Sandbox

Balise : Éditeur de wikicode 2017
m (typo)
 
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 on some wikies (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.
 
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.