Changes between Version 4 and Version 5 of Rules/Pictures


Ignore:
Timestamp:
2026-09-19T17:19:05+02:00 (8 days ago)
Author:
wangi
Comment:

Support v2 image IDs with >15 digits

Legend:

Unmodified
Added
Removed
Modified
  • Rules/Pictures

    v4 v5  
    1313}
    1414
    15 *[mapillary][mapillary!~/^[0-9]{15}$/][mapillary=~/pKey=[0-9]{15}/] {
    16     throwError: tr("mapillary tag should only contain image key instead of full URL");
    17     fixAdd: concat("mapillary=", get(regexp_match(".*pKey=([0-9]{15}).*", tag("mapillary")),1));
     15*[mapillary][mapillary!~/^[0-9]{15,19}$/][mapillary=~/pKey=[0-9]{15,19}/] {
     16    throwError: tr("mapillary tag should only contain image ID instead of full URL");
     17    fixAdd: concat("mapillary=", get(regexp_match(".*pKey=([0-9]{15,19}).*", tag("mapillary")),1));
    1818}
    1919
    20 *[mapillary][mapillary!~/^[0-9]{15}$/][mapillary!~/pKey=[0-9]{15}/] {
    21     throwError: tr("mapillary tag should only contain image key (15 characters ciphers string)");
     20*[mapillary][mapillary=~/^[A-Za-z0-9_-]{22}$/] {
     21    throwWarning: tr("mapillary tag contains a legacy image key, which Mapillary no longer resolves; replace it by the numeric image ID");
     22}
     23
     24*[mapillary][mapillary!~/^[0-9]{15,19}$/][mapillary!~/pKey=[0-9]{15,19}/][mapillary!~/^[A-Za-z0-9_-]{22}$/] {
     25    throwError: tr("mapillary tag should only contain image ID (15 to 19 digits)");
    2226}
    2327