diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-22 18:53:13 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-22 18:53:13 +0100 |
commit | 29cc91fa0588a3077bcfe280e825709e704beee2 (patch) | |
tree | 5f5a5ddba288785425b7181c92139251fc940f25 /lib/sisu | |
parent | Merge branch 'upstream' into debian/sid (diff) | |
parent | regex to match composite file names in db common and cgi (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu')
-rw-r--r-- | lib/sisu/v0/cgi_sql_common.rb | 4 | ||||
-rw-r--r-- | lib/sisu/v0/db_import.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v0/cgi_sql_common.rb b/lib/sisu/v0/cgi_sql_common.rb index 7df73901..ef68fc13 100644 --- a/lib/sisu/v0/cgi_sql_common.rb +++ b/lib/sisu/v0/cgi_sql_common.rb @@ -788,7 +788,7 @@ module SiSU_CGI_sql end #text_objects_body s_contents.each do |c| #% text body - location=c['filename'][/(.+?)\.(?:_?sst|ssm)$/,1] + location=c['filename'][/(.+?)\.(?:ssm\.sst|sst)$/,1] file_suffix=c['filename'][/.+?\.(_?sst|ssm)$/,1] lang=if location =~ /\S+?~(\S\S\S?)$/ l=location[/\S+?~(\S\S\S?)$/,1] @@ -889,7 +889,7 @@ module SiSU_CGI_sql #text_objects_endnote oldtid = 0 s_endnotes.each do |e| #% endnotes - location=e['filename'][/(.+?)\.(?:_?sst|ssm)$/,1] + location=e['filename'][/(.+?)\.(?:ssm\.sst|sst)$/,1] file_suffix=e['filename'][/.+?\.(_?sst|ssm)$/,1] lang=if location =~ /\S+?~(\S\S\S?)$/ l=location[/\S+?~(\S\S\S?)$/,1] diff --git a/lib/sisu/v0/db_import.rb b/lib/sisu/v0/db_import.rb index 6d50fb2b..404d9437 100644 --- a/lib/sisu/v0/db_import.rb +++ b/lib/sisu/v0/db_import.rb @@ -75,7 +75,7 @@ module SiSU_DB_import @md=SiSU_Param::Parameters.new(@opt).get @fnb=@md.fnb end - @suffix=@opt.fns[/(?:.+?)\.[_-]?sst/,1] + @suffix=@opt.fns[/(?:.+?)(?:\.ssm\.sst|\.-?sst)/,1] @fnm="#@dal/#{@opt.fns}.meta.rbm" @@seg='' @@seg_full='' #create? consider placing field just before clean text as opposed to seg which contains seg(.html) name info seg_full would contain seg info for levels 5 & 6 where available eg seg_full may be 7.3 (level 5) and 7.3.1 (level 6) where seg is 7 |