Changes between Version 1 and Version 4 of Ticket #16495


Ignore:
Timestamp:
2018-07-18T00:36:27+02:00 (6 years ago)
Author:
Don-vip
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16495

    • Property Component CoreCore validator
    • Property Milestone18.07
  • Ticket #16495 – Description

    v1 v4  
    1313Because of two issues:
    14141. The validation rule is case insensitive
    15 
     15{{{
    1616  node[wikipedia =~ /(?i)^[-a-z]{2,12}:.*_/][wikipedia !~ /(?i)^[-a-z]{2,12}:https?:/] {                                             
    17 
     17}}}
    1818But the replacement is not
    19 
     19{{{
    2020  fixAdd: concat("wikipedia=", get(regexp_match("^([-a-z]+:)(.+)$", tag("wikipedia")),1), trim(replace(get(regexp_match("^([-a-z]+:)(.+)$", tag("wikipedia")),2), "_", " ")));                                                                 
    21 
     21}}}
    2222So the regexp_match match nothing, the two regexp_match should be fixed with "/(?i)..."
    2323