GNOME Bugzilla – Bug 639914
url highlight is broken
Last modified: 2011-01-19 02:10:59 UTC
problem appear after 19ac1f8b666ff0cf51395b04e5deadebed2626a5 patch follow
Created attachment 178680 [details] [review] messageTray: fix url highlight
Review of attachment 178680 [details] [review]: I came up with the same patch after the problem was mentioned on IRC, so I guess it's OK, though it definitively needs a more verbose commit message; for reference, this is what I used: util: Fix regex used to match for URLs Commit a65a0f03d49 changed the literal RegExp to a string-based RegExp(). As backslashes are treated specially inside strings, translating an expression as /\s/ to '\s' results in a faulty regex of /s/, so escape backslashes where necessary.