﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17189	mapcss should be able to use previous fields in the selector in additional fields	taylor.smock	team	"Example:
{{{
#!mapcss
/* Check for duplicated words in names */
*[/^name/][regexp_test(""\\b(\\p{L}+)\\b(?:\\s+\\1\\b)+"", tag(""{0.key}""), ""(?i)"")] {
  throwWarning: tr(""Possible duplicated words in {0}"", ""{0.key}"");
  assertMatch: ""node name=\""Duplicate Duplicate\"""";
  assertNoMatch: ""node name=\""Nothing to see here\"""";
}
}}}

instead of

{{{
#!mapcss
*[/^name/][regexp_test(""\\b(\\p{L}+)\\b(?:\\s+\\1\\b)+"", tag(""name""), ""(?i)"")] {
  throwWarning: tr(""Possible duplicated words in {0}"", ""{0.key}"");
}
}}}

Note:
{{{
#!mapcss
*[/^name/][/^name/=~/(?i)\b(\p{L}+)\b(?:\s+\1\b)+/] {
  throwWarning: tr(""Possible duplicated words in {0}"", ""{0.key}"");
}
}}}
throws an error on the first `+`."	defect	new	normal		Core mappaint	latest		mapcss	
