[tor-commits] [gettor/master] Fixed valid_format checking to support Windows and OSX bundles too (issue #3). Single locales are also supported too (before it would only recognize things like en-US or es-ES).

ilv at torproject.org ilv at torproject.org
Tue Sep 22 23:39:13 UTC 2015


commit 89a22c67ab4bb75611e0d6efb4002ef963f98d2a
Author: ilv <ilv at users.noreply.github.com>
Date:   Sun Nov 16 12:16:41 2014 -0300

    Fixed valid_format checking to support Windows and OSX bundles too (issue #3). Single locales are also supported too (before it would only recognize things like en-US or es-ES).
---
 dropbox.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dropbox.py b/dropbox.py
index 6c84751..5393487 100644
--- a/dropbox.py
+++ b/dropbox.py
@@ -31,7 +31,7 @@ def valid_format(file):
 
     """
     m = re.search(
-        'tor-browser-(\w+)\d\d-\d\.\d\.\d_(\w\w)-\w+\.tar\.xz',
+        'tor-browser-(\w+)\d\d-\d\.\d\.\d_(\w\w|\w\w-\w\w)(\.tar\.xz|\.mar)',
         file)
     if m:
         return True





More information about the tor-commits mailing list