Skip to content

Commit f3e06ea

Browse files
authored
Merge pull request zakird#95 from ahtesham78/patch-2
Regex match for old ruby versions
2 parents 2de24e3 + a687d79 commit f3e06ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/wkhtmltopdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ suffix = case RbConfig::CONFIG['host_os']
2929
os_based_on_centos_7 = os.start_with?('amzn_2')
3030
os = 'centos_7' if os_based_on_centos_7
3131

32-
os_based_on_debian_9 = /deepin/.match?(os)
32+
os_based_on_debian_9 = (/deepin/ =~ os)
3333
os = 'debian_9' if os_based_on_debian_9
3434

3535
os_based_on_archlinux = os.start_with?('arch_') || os.start_with?('manjaro_')

0 commit comments

Comments
 (0)