Improve documentation on commentlink.match regular expression
Bug: Issue 412
Change-Id: I2e7a7e0cc3d971d5f157be7e2f8899644d53c9de
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt
index f6aec76..e65861a 100644
--- a/Documentation/config-gerrit.txt
+++ b/Documentation/config-gerrit.txt
@@ -970,6 +970,11 @@
example, to match the string `bug` in a case insensitive way the match
pattern `[bB][uU][gG]` needs to be used.
+
+The regular expression pattern is applied to the HTML form of the message
+in question, which means it needs to assume the data has been escaped.
+So `"` needs to be matched as `&quot;`, `<` as `&lt;`, and `'` as
+`&#39;`.
++
A common pattern to match is `bug\\s+(\\d+)`.
[[commentlink.name.link]]commentlink.<name>.link::