Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22188: LJSUP-12510: Cannot delete Repost from F...

Committer: anazarov
LJSUP-12510: Cannot delete Repost from Friends page
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2012-06-07 08:27:59 UTC (rev 22187)
+++ trunk/htdocs/js/basic.js	2012-06-07 09:17:35 UTC (rev 22188)
@@ -384,7 +384,7 @@
 (function() {
 	var base = (LJ.pageVar('siteroot', true) || 'http://www.livejournal.com')
 						.replace('http://www', ''),
-		journalReg  = new RegExp('^http:\\/\\/(\\w+)' + base.replace(/\./, '\\.') + '(?:\\/(?:(\\w+)\\/)?(?:(\\d+)\\.html)?)?$');
+		journalReg  = new RegExp('^http:\\/\\/([\\w-]+)' + base.replace(/\./, '\\.') + '(?:\\/(?:([\\w-]+)\\/)?(?:(\\d+)\\.html)?)?$');
 
 	/**
 	 * Parse journal link to retrieve information from it

Tags: anazarov, js, livejournal, nfokz
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