Changes between Version 1 and Version 4 of Ticket #16495
- Timestamp:
- 2018-07-18T00:36:27+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16495
- Property Component Core → Core validator
- Property Milestone → 18.07
-
Ticket #16495 – Description
v1 v4 13 13 Because of two issues: 14 14 1. The validation rule is case insensitive 15 15 {{{ 16 16 node[wikipedia =~ /(?i)^[-a-z]{2,12}:.*_/][wikipedia !~ /(?i)^[-a-z]{2,12}:https?:/] { 17 17 }}} 18 18 But the replacement is not 19 19 {{{ 20 20 fixAdd: concat("wikipedia=", get(regexp_match("^([-a-z]+:)(.+)$", tag("wikipedia")),1), trim(replace(get(regexp_match("^([-a-z]+:)(.+)$", tag("wikipedia")),2), "_", " "))); 21 21 }}} 22 22 So the regexp_match match nothing, the two regexp_match should be fixed with "/(?i)..." 23 23