can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r18914: LJSUP-8613: User ID is replaced with RTE...

Committer: dpetrov
LJSUP-8613: User ID is replaced with RTE editor
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2011-04-20 03:32:04 UTC (rev 18913)
+++ trunk/htdocs/js/rte.js	2011-04-20 03:33:47 UTC (rev 18914)
@@ -283,7 +283,7 @@
 		.replace(/<span[^>]*?class="ljuser[^>]*?><a href="http:\/\/users\.[-.\w]+\/([\w]+)\/.*?<b>([^<]+)?<\/b><\/a><\/span>/g, '<lj user="$1" title="$2"/>')
 
 		//handle ext_ nicknames
-		.replace(/<span[^>]*?class="ljuser[^>]*?lj:user="([_\d\w]+)"[^>]*?><a>?(.*?)<\/a><a[^<]*?<b>([^<]+)?<\/b><\/a><\/span>/g, '<lj user="$1" title="$3"/>')
+		.replace(/<span[^>]*?lj:user="(ext_\d+)"[^>]*?><a>?(.*?)<\/a><a[^<]*?<b>([^<]+)?<\/b><\/a><\/span>/g, '<lj user="$1" title="$3"/>')
 
 		.replace(/<span[^>]*?class="ljuser[^>]*?><a href="http:\/\/([-\w]+)\..*?<b>([^<]+)?<\/b><\/a><\/span>/g, '<lj user="$1" title="$2"/>')
 		.replace(/<\/lj>/g, '');

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments