notificationDaemon: fix escaping in xchat rewrite rules

https://bugzilla.gnome.org/show_bug.cgi?id=635712
This commit is contained in:
Dan Winship 2010-11-29 11:12:21 -05:00
parent c9b178b193
commit b25bad9995

View File

@ -75,11 +75,11 @@ const Urgency = {
const rewriteRules = { const rewriteRules = {
'XChat': [ 'XChat': [
{ pattern: /^XChat: Private message from: (\S*) \(.*\)$/, { pattern: /^XChat: Private message from: (\S*) \(.*\)$/,
replacement: '&lt;$1&gt;' }, replacement: '<$1>' },
{ pattern: /^XChat: New public message from: (\S*) \((.*)\)$/, { pattern: /^XChat: New public message from: (\S*) \((.*)\)$/,
replacement: '$2 &lt;$1&gt;' }, replacement: '$2 <$1>' },
{ pattern: /^XChat: Highlighted message from: (\S*) \((.*)\)$/, { pattern: /^XChat: Highlighted message from: (\S*) \((.*)\)$/,
replacement: '$2 &lt;$1&gt;' } replacement: '$2 <$1>' }
] ]
}; };