[gnome-subtitles] Add support for webm and ogv video file extensions, based on a patch from Shlomi Fish (bug #702273)
- From: Pedro Daniel da Rocha Melo e Castro <pcastro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-subtitles] Add support for webm and ogv video file extensions, based on a patch from Shlomi Fish (bug #702273)
- Date: Fri, 14 Jun 2013 23:20:32 +0000 (UTC)
commit 4ee370bb95804d6846fc583813a30dfdc01adf28
Author: Pedro Castro <pedro gnomesubtitles org>
Date: Sat Jun 15 00:18:41 2013 +0100
Add support for webm and ogv video file extensions, based on a patch from Shlomi Fish (bug #702273)
Regex optimized not to use named groups (and only captures the end of the filename now, not the whole
filename)
src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
b/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
index 1a3b50c..096829a 100644
--- a/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
+++ b/src/GnomeSubtitles/Ui/VideoPreview/VideoFiles.cs
@@ -1,6 +1,6 @@
/*
* This file is part of Gnome Subtitles.
- * Copyright (C) 2007-2011 Pedro Castro
+ * Copyright (C) 2007-2013 Pedro Castro
*
* Gnome Subtitles is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ using System.Text.RegularExpressions;
namespace GnomeSubtitles.Ui.VideoPreview {
public class VideoFiles {
- private static Regex videoFilesRegex = new
Regex(@"^.*\.((3g2)|(3gp)|(asf)|(avi)|(bdm)|(cpi)|(divx)|(flv)|(m4v)|(mkv)|(mod)|(mov)|(mp3)|(mp4)|(mpeg)|(mpg)|(mts)|(ogg)|(ogm)|(rm)|(rmvb)|(spx)|(vob)|(wav)|(wma)|(wmv)|(xvid))$");
+ private static Regex videoFilesRegex = new
Regex(@"\.(?:(?:3g2)|(?:3gp)|(?:asf)|(?:avi)|(?:bdm)|(?:cpi)|(?:divx)|(?:flv)|(?:m4v)|(?:mkv)|(?:mod)|(?:mov)|(?:mp3)|(?:mp4)|(?:mpeg)|(?:mpg)|(?:mts)|(?:ogg)|(?:ogm)|(?:ogv)|(?:rm)|(?:rmvb)|(?:spx)|(?:vob)|(?:wav)|(?:webm)|(?:wma)|(?:wmv)|(?:xvid))$");
/* Public methods */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]