summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-08-31 15:25:59 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-08-31 15:25:59 -0400
commit6e12111b00f892ecf194e843bcabc55d1dba78ac (patch)
treee40aa1b2eb02b04f1d497ea99383738d1159050c /doc
parent4871b198baf18e4f7a1dcb87410bc6e9d5584ecf (diff)
downloadbcfg2-6e12111b00f892ecf194e843bcabc55d1dba78ac.tar.gz
bcfg2-6e12111b00f892ecf194e843bcabc55d1dba78ac.tar.bz2
bcfg2-6e12111b00f892ecf194e843bcabc55d1dba78ac.zip
anchor rules regexes at both ends to avoid bogus matches
Diffstat (limited to 'doc')
-rw-r--r--doc/server/plugins/generators/rules.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/server/plugins/generators/rules.txt b/doc/server/plugins/generators/rules.txt
index 70d894958..6bc407371 100644
--- a/doc/server/plugins/generators/rules.txt
+++ b/doc/server/plugins/generators/rules.txt
@@ -369,6 +369,10 @@ do::
</Group>
</Rules>
+Regular expressions are anchored at both ends, so ``<Service
+name="bcfg2".../>`` will *not* match a Service named ``bcfg2-server``;
+you'd have to explicitly specify ``<Service name="bcfg2.*".../>``.
+
Note that only one Rule can apply to any abstract entry, so you cannot
specify multiple regexs to match the same rule. In the use case
above, you would have to specify the services fully (except for type)