Merge "Add note regarding unsupported HTML matching comment link format"
This commit is contained in:
@@ -1380,10 +1380,13 @@ upper and lower case character for each position must be used. For
|
|||||||
example, to match the string `bug` in a case insensitive way the match
|
example, to match the string `bug` in a case insensitive way the match
|
||||||
pattern `[bB][uU][gG]` needs to be used.
|
pattern `[bB][uU][gG]` needs to be used.
|
||||||
+
|
+
|
||||||
The regular expression pattern is applied to the HTML form of the message
|
Between the GWT UI and PolyGerrit, the commentlink.name.match regular
|
||||||
in question, which means it needs to assume the data has been escaped.
|
expressions are applied differently. Whereas in the GWT UI the
|
||||||
So `"` needs to be matched as `&quot;`, `<` as `&lt;`, and `'` as
|
expressions are applied to the formatted and escaped HTML result, the
|
||||||
`&#39;`.
|
PolyGerrit UI applies them only to the raw, unformatted and unescaped
|
||||||
|
text form. PolyGerrit does not support regex matching against HTML.
|
||||||
|
Comment link patterns that are written in this style should be updated
|
||||||
|
to match text formats.
|
||||||
+
|
+
|
||||||
A common pattern to match is `bug\\s+(\\d+)`.
|
A common pattern to match is `bug\\s+(\\d+)`.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user