r7413 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7413 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm
- Date: Wed, 9 Apr 2008 17:51:14 -0500 (CDT)
Author: otaylor
Date: 2008-04-09 17:51:13 -0500 (Wed, 09 Apr 2008)
New Revision: 7413
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/dm/YouTubeThumbnailDMO.java
Log:
Fix URL for matching YouTube URL's (thanks to Colin for the sharp eyes)
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/dm/YouTubeThumbnailDMO.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/dm/YouTubeThumbnailDMO.java 2008-04-08 20:58:26 UTC (rev 7412)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/dm/YouTubeThumbnailDMO.java 2008-04-09 22:51:13 UTC (rev 7413)
@@ -33,8 +33,8 @@
super(key);
}
- static private Pattern YOUTUBE_URL_PATTERN = Pattern.compile("http://youtube.com/?v=([A-Za-z0-9_-]+)");
-
+ static private Pattern YOUTUBE_URL_PATTERN = Pattern.compile("http://youtube.com/\\?v=([A-Za-z0-9_-]+)");
+
private static String extractExtra(String url) {
Matcher m = YOUTUBE_URL_PATTERN.matcher(url);
if (m.matches())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]