Changeset 17266 in josm
- Timestamp:
- 2020-10-26T15:56:55+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/numeric.mapcss
r17145 r17266 218 218 } 219 219 220 *[height ][height !~ /^(([0-9]+ \.?[0-9]*( (m|ft))?)|([1-9][0-9]*\'((10|11|[0-9])((\.[0-9]+)?)\")?))$/]!.height_separator_autofix!.height_meter_autofix!.height_foot_autofix,220 *[height ][height !~ /^(([0-9]+(\.[0-9]+)?( (m|ft))?)|([1-9][0-9]*\'((10|11|[0-9])((\.[0-9]+)?)\")?))$/]!.height_separator_autofix!.height_meter_autofix!.height_foot_autofix, 221 221 *[maxheight][maxheight !~ /^(([1-9][0-9]*(\.[0-9]+)?( (m|ft))?)|([0-9]+\'(([0-9]|10|11)(\.[0-9]*)?\")?)|none|default|below_default)$/]!.maxheight_separator_autofix!.maxheight_meter_autofix!.maxheight_foot_autofix, 222 222 *[maxlength][maxlength !~ /^(([1-9][0-9]*(\.[0-9]+)?( (m|ft))?)|([0-9]+\'(([0-9]|10|11)(\.[0-9]*)?\")?)|none|default|below_default)$/]!.maxlength_separator_autofix!.maxlength_meter_autofix!.maxlength_foot_autofix, 223 *[width ][width !~ /^(([0-9]+ \.?[0-9]*( (m|ft))?)|([0-9]+\'([0-9]+\.?[0-9]*\")?))$/]!.width_separator_autofix!.width_meter_autofix!.width_foot_autofix,224 *[maxwidth ][maxwidth !~ /^(([0-9]+ \.?[0-9]*( (m|ft))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/]!.maxwidth_separator_autofix!.maxwidth_meter_autofix!.maxwidth_foot_autofix {223 *[width ][width !~ /^(([0-9]+(\.[0-9]+)?( (m|ft))?)|([0-9]+\'([0-9]+(\.[0-9]+)?\")?))$/]!.width_separator_autofix!.width_meter_autofix!.width_foot_autofix, 224 *[maxwidth ][maxwidth !~ /^(([0-9]+(\.[0-9]+)?( (m|ft))?)|([0-9]+\'([0-9]+(\.[0-9]+)?\")?))$/]!.maxwidth_separator_autofix!.maxwidth_meter_autofix!.maxwidth_foot_autofix { 225 225 throwWarning: tr("unusual value of {0}: meters is default; point is decimal separator; if units, put space then unit", "{0.key}"); 226 226 assertMatch: "node height=medium"; … … 228 228 assertMatch: "node maxlength=0"; 229 229 assertMatch: "node maxlength=10'13\""; 230 assertMatch: "node width=10'2.\""; 231 assertMatch: "node maxheight=\"2. m\""; 232 assertMatch: "node height=\"12. m\""; 230 233 assertNoMatch: "node height=6.78 meters"; 231 234 assertNoMatch: "node height=5 metre"; … … 237 240 assertNoMatch: "node height=22'"; 238 241 assertNoMatch: "node width=10'5\""; 242 assertNoMatch: "node width=10'"; 239 243 } 240 244 … … 263 267 } 264 268 265 *[maxaxleload][maxaxleload !~ /^(([0-9]+ \.?[0-9]*( (t|kg|st|lbs))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/]!.maxaxleload_separator_autofix,266 *[maxweight][maxweight !~ /^(([0-9]+ \.?[0-9]*( (t|kg|st|lbs))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/]!.maxweight_separator_autofix {269 *[maxaxleload][maxaxleload !~ /^(([0-9]+(\.[0-9]+)?( (t|kg|st|lbs))?)|([0-9]+\'([0-9]+(\.[0-9]+)?\")?))$/]!.maxaxleload_separator_autofix, 270 *[maxweight][maxweight !~ /^(([0-9]+(\.[0-9]+)?( (t|kg|st|lbs))?)|([0-9]+\'([0-9]+(\.[0-9]+)?\")?))$/]!.maxweight_separator_autofix { 267 271 throwWarning: tr("unusual value of {0}: tonne is default; point is decimal separator; if units, put space then unit", "{0.key}"); 268 272 assertMatch: "node maxaxleload=something"; 269 273 assertMatch: "node maxweight=-5"; 270 274 assertNoMatch: "node maxaxleload=2"; 275 assertNoMatch: "node maxweight=12'"; 271 276 assertNoMatch: "node maxweight=6'6\""; 272 277 assertNoMatch: "node maxaxleload=2.5"; … … 303 308 assertNoMatch: "node distance=4"; 304 309 } 305 *[distance][distance !~ /^(([0-9]+ \.?[0-9]*( (m|km|mi|nmi))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/]!.distance_separator_autofix {310 *[distance][distance !~ /^(([0-9]+(\.[0-9]+)?( (m|km|mi|nmi))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/]!.distance_separator_autofix { 306 311 throwWarning: tr("unusual value of {0}: kilometers is default; point is decimal separator; if units, put space then unit", "{0.key}"); 307 312 assertMatch: "way distance=something"; 308 313 assertMatch: "way distance=-5"; 314 assertMatch: "way distance=5."; 309 315 assertNoMatch: "way distance=2"; 310 316 assertNoMatch: "way distance=2.5";
Note:
See TracChangeset
for help on using the changeset viewer.