aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-01-23 23:22:32 -0500
committerRalph Amissah <ralph@amissah.com>2013-01-23 23:22:32 -0500
commit7363e25d0952188795904d0e7a738a7adbff2b4a (patch)
tree71836d26adf5b6e0f4afd313775b1547f412e5a4 /lib/sisu/v4
parentv4 v3: texpdf_format, list of .sty files (& their texlive source within Debian) (diff)
v4 v3: param, match possible sisu versions, detail
Diffstat (limited to 'lib/sisu/v4')
-rw-r--r--lib/sisu/v4/param.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v4/param.rb b/lib/sisu/v4/param.rb
index 916d89c1..bcbf9ce3 100644
--- a/lib/sisu/v4/param.rb
+++ b/lib/sisu/v4/param.rb
@@ -968,7 +968,7 @@ module SiSU_Param
sm_a,sm_b,sm_c=fns_array[0].match(/^(?:%\s+)?(?:SiSU\s+(?:master\s+)?|sisu-)([0-9]+)?(?:\.([0-9]+))?(?:\.([0-9]+))?$/)[1..3]
sm_c ||=0
sv=(@opt.cmd =~/[VMv]/) ? ("SiSU version (#{@sisu_version[:version]})") : ''
- s_a,s_b,s_c=@sisu_version[:version].match(/^([0-9]+)?(?:\.([0-9]+))?(?:\.([0-9]+))?(?:\-\S+)?$/)[1..3]
+ s_a,s_b,s_c=@sisu_version[:version].match(/^([0-9]+)?(?:\.([0-9]+))?(?:\.([0-9]+))?(?:[~-]\S+)?$/)[1..3]
tell=(@markup_version_declared.to_f==@markup_version.determined) \
? SiSU_Screen::Ansi.new(@opt.cmd,"Markup version (#{@markup_version.series} version #{@markup_version.determined})",sv)
: SiSU_Screen::Ansi.new(@opt.cmd,"Markup version declared (#{@markup_version_declared}), determined (#{@markup_version.series} version #{@markup_version.determined})",sv)