projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eba761
)
Allowing periods in clickable channel names
author
Darren
<darren@darrenwhitlen.com>
Sat, 17 Aug 2013 19:01:05 +0000
(20:01 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Sat, 17 Aug 2013 19:01:05 +0000
(20:01 +0100)
client/assets/src/views/panel.js
patch
|
blob
|
blame
|
history
diff --git
a/client/assets/src/views/panel.js
b/client/assets/src/views/panel.js
index 9d2fd338eca68017415f4f1d64ea9e6c579fe246..7cec5098088d90d32dc00e03b4f30a73af4c85e6 100644
(file)
--- a/
client/assets/src/views/panel.js
+++ b/
client/assets/src/views/panel.js
@@
-60,7
+60,7
@@
_kiwi.view.Panel = Backbone.View.extend({
msg.msg = $('<div />').text(msg.msg).html();
// Make the channels clickable
- re = new RegExp('(?:^|\\s)([' + escapeRegex(_kiwi.gateway.get('channel_prefix')) + '][^ ,
.
\\007]+)', 'g');
+ re = new RegExp('(?:^|\\s)([' + escapeRegex(_kiwi.gateway.get('channel_prefix')) + '][^ ,\\007]+)', 'g');
msg.msg = msg.msg.replace(re, function (match) {
return '<a class="chan" data-channel="' + match.trim() + '">' + match + '</a>';
});