summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/if-regex-bad-attribute
blob: f330fde01e9b258020e82fcc3a01a8b2a00a8ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# PRE: if-regex-match if-regex-error
#

#
#  This should parse
#
if (&User-Name =~ /%{User-Name}/) {
	update reply {
		Filter-Id := "filter"
	}
}

#
#  Check regexes which refer to unknown attributes
#
if (&User-Name =~ /%{What-The-Heck-Is-This-Thing}/) {	# ERROR
	update reply {
		Filter-Id := "filter"
	}
}