atomsRepositoryAdd allows local network server. 21/8721/1
Bruno JOFRET [Thu, 16 Aug 2012 15:46:40 +0000 (17:46 +0200)]
Change-Id: Ic79db966492adef4b3795e1d15d1760d12737010

scilab/modules/atoms/macros/atomsRepositoryAdd.sci

index 87a0f5e..d27ddd2 100644 (file)
@@ -28,7 +28,7 @@ function nbAdd = atomsRepositoryAdd(url,section)
     repositories         = []; // Column vector that contains user repositories
     currentRepositories  = atomsRepositoryList();
     currentRepositories  = currentRepositories(:,1);
-    valid_url_pattern    = "/^((((H|h)(T|t)|(F|f))(T|t)(P|p)((S|s)?))\:\/\/)?(www.|[a-zA-Z0-9].)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,6}(\:[0-9]{1,5})*(\/($|[a-zA-Z0-9\.\,\;\?\''\\\+&%\$#\=~_\-]+))*$/";
+    valid_url_pattern    = "/^((((H|h)(T|t)|(F|f))(T|t)(P|p)((S|s)?))\:\/\/)?([a-zA-Z0-9]+)([\.][a-zA-Z0-9\-]+)*(\:[0-9]{1,5})*(\/($|[a-zA-Z0-9\.\,\;\?\''\\\+&%\$#\=~_\-]+))*$/";
 
     // Check number of input arguments
     // =========================================================================