aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/develop/hub_options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/develop/hub_options.rb')
-rw-r--r--lib/sisu/develop/hub_options.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sisu/develop/hub_options.rb b/lib/sisu/develop/hub_options.rb
index 6e22c2ae..f6a40be9 100644
--- a/lib/sisu/develop/hub_options.rb
+++ b/lib/sisu/develop/hub_options.rb
@@ -249,17 +249,15 @@ module SiSU_Commandline
end
end
def init_selected_lang_dirs(a)
- @z=[]
- a.each do |y|
+ @z=a.each.map do |y|
if y =~/^#{lng_base}\/(\S+?\.ss[tm])$/
@fn=$1
- @z << y
+ y
elsif y =~/^#{@lang_regx}\/?$/
- @z << "#{y}/#{@fn}"
- else @z << y
+ "#{y}/#{@fn}"
+ else y
end
end
- @z
end
def init
a=@a