Changes between Version 2 and Version 3 of Rules/Pictures


Ignore:
Timestamp:
2019-11-05T17:57:02+01:00 (4 years ago)
Author:
PanierAvide
Comment:

Add auto fix for mapillary tag

Legend:

Unmodified
Added
Removed
Modified
  • Rules/Pictures

    v2 v3  
    1313}
    1414
    15 *[mapillary][mapillary!~/^[a-zA-Z0-9_-]{22}$/] {
     15*[mapillary][mapillary!~/^[a-zA-Z0-9_-]{22}$/][mapillary=~/pKey=[a-zA-Z0-9_-]{22}/] {
     16    throwError: tr("mapillary tag should only contain image ID instead of full URL");
     17    fixAdd: concat("mapillary=", get(regexp_match(".*pKey=([a-zA-Z0-9_-]{22}).*", tag("mapillary")),1));
     18}
     19
     20*[mapillary][mapillary!~/^[a-zA-Z0-9_-]{22}$/][mapillary!~/pKey=[a-zA-Z0-9_-]{22}/] {
    1621    throwError: tr("mapillary tag should only contain image ID (22 characters string)");
    1722}