Changes between Version 5 and Version 6 of Rules/Pictures
- Timestamp:
- 2026-09-19T22:48:45+02:00 (10 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/Pictures
v5 v6 16 16 throwError: tr("mapillary tag should only contain image ID instead of full URL"); 17 17 fixAdd: concat("mapillary=", get(regexp_match(".*pKey=([0-9]{15,19}).*", tag("mapillary")),1)); 18 assertMatch: "node mapillary=https://www.mapillary.com/app/?pKey=1410083070176035&focus=photo"; 19 assertMatch: "node mapillary=https://www.mapillary.com/app/?pKey=277755748254846"; 20 assertNoMatch: "node mapillary=1410083070176035"; 21 assertNoMatch: "node mapillary=8fX3-aB9vQ2kLm5nR7tYwZ"; 18 22 } 19 23 20 24 *[mapillary][mapillary=~/^[A-Za-z0-9_-]{22}$/] { 21 25 throwWarning: tr("mapillary tag contains a legacy image key, which Mapillary no longer resolves; replace it by the numeric image ID"); 26 assertMatch: "node mapillary=8fX3-aB9vQ2kLm5nR7tYwZ"; 27 assertNoMatch: "node mapillary=1410083070176035"; 28 assertNoMatch: "node mapillary=https://www.mapillary.com/app/?pKey=277755748254846"; 22 29 } 23 30 24 31 *[mapillary][mapillary!~/^[0-9]{15,19}$/][mapillary!~/pKey=[0-9]{15,19}/][mapillary!~/^[A-Za-z0-9_-]{22}$/] { 25 32 throwError: tr("mapillary tag should only contain image ID (15 to 19 digits)"); 33 assertMatch: "node mapillary=1"; 34 assertMatch: "node mapillary=abc"; 35 assertMatch: "node mapillary=12345678901234567890"; 36 assertNoMatch: "node mapillary=823115609853912"; 37 assertNoMatch: "node mapillary=1410083070176035"; 38 assertNoMatch: "node mapillary=12345678901234567"; 39 assertNoMatch: "node mapillary=1234567890123456789"; 40 assertNoMatch: "node mapillary=https://www.mapillary.com/app/?pKey=1410083070176035"; 41 assertNoMatch: "node mapillary=8fX3-aB9vQ2kLm5nR7tYwZ"; 26 42 } 27 43 28 44 *[flickr][flickr!~/^https:\/\/www.flickr.com\/photos\/[0-9]+@[A-Z0-9]+\/[0-9]+$/] { 29 45 throwError: tr("flickr tag should contain full image URL"); 46 assertMatch: "node flickr=12345678901"; 47 assertNoMatch: "node flickr=https://www.flickr.com/photos/12345678@N01/12345678901"; 30 48 } 31 49
