Author: sevein
Date: Fri Jan  6 11:49:37 2012
New Revision: 10586

Log:
Same regex behavior used in r10585 for SWORD plugin

Modified:
   trunk/plugins/qtSwordPlugin/lib/qtPackageExtractorBase.class.php

Modified: trunk/plugins/qtSwordPlugin/lib/qtPackageExtractorBase.class.php
==============================================================================
--- trunk/plugins/qtSwordPlugin/lib/qtPackageExtractorBase.class.php    Fri Jan 
 6 11:48:57 2012        (r10585)
+++ trunk/plugins/qtSwordPlugin/lib/qtPackageExtractorBase.class.php    Fri Jan 
 6 11:49:37 2012        (r10586)
@@ -234,8 +234,8 @@
 
   protected function getUUID($subject)
   {
-    
preg_match('/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/', 
$subject, $matches);
+    
preg_match_all('/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/',
 $subject, $matches);
 
-    return @$matches[0];
+    return @end(@$matches[0]);
   }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to