File: fix-Rakefile-regex.patch

package info (click to toggle)
ruby-jquery-ui-rails 6.0.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 224 kB
  • sloc: sh: 61; ruby: 20; makefile: 12
file content (17 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fixes Rakefile regex
 Replaces '-' to '*', since '-' means a range in ruby regex and not the
 character itself.
Author: Lucas Kanashiro <kanashiro@debian.org>
Last-Updated: 2019-02-08

--- a/Rakefile
+++ b/Rakefile
@@ -31,7 +31,7 @@ def map_dependencies
     basename = File.basename path
     file = File.read path
 
-    matchdata = file.match(/define\(\s*\[\s*([\"\.\/\,\w\s-\:]+)\]/m)
+    matchdata = file.match(/define\(\s*\[\s*([\"\.\/\,\w\s*\:]+)\]/m)
 
     next if matchdata.nil?