Skip to content

Commit a687d79

Browse files
Regex match for old ruby versions
1 parent 2de24e3 commit a687d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/wkhtmltopdf

Lines changed: 1 addition & 1 deletion
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)