| 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)); |
| 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)"); |