Changes between Version 1 and Version 2 of Rules/ChargeRules


Ignore:
Timestamp:
2024-08-13T22:15:28+02:00 (18 months ago)
Author:
Famlam
Comment:

Enable 'simple' warning for ;-separated values with , instead of .

Legend:

Unmodified
Added
Removed
Modified
  • Rules/ChargeRules

    v1 v2  
    9999
    100100/* Comma as decimal separator */
    101 *[charge:conditional=~/(^|\/ ?)[0-9]+,[0-9]/]!.hasSimpleChargeFix,
    102 *[charge=~/(^|\/ ?)[0-9]+,[0-9]/]!.hasSimpleChargeFix {
     101*[charge:conditional=~/(^|\/ ?|; ?)[0-9]+,[0-9]/]!.hasSimpleChargeFix,
     102*[charge=~/(^|\/ ?|; ?)[0-9]+,[0-9]/]!.hasSimpleChargeFix {
    103103  throwWarning: tr("unusual value of {0}: use . instead of , as decimal separator", "{0.key}");
    104104  group: tr("Invalid value of charge");
     
    107107  assertMatch: "node charge=\"0,223 USD/30.4 m³\"";
    108108  assertMatch: "node charge=\"0.223 USD/30,4 m³\"";
     109  assertMatch: "node charge=\"0.223 USD;30,4 USD\"";
    109110  */
    110111  assertNoMatch: "node charge=\"0.223 USD/30.4 m³\"";