Skip to content

Commit 5427e49

Browse files
author
Markus Klink
committed
Improve ipkg parser
Allow - and _ to be part of the package name in pkgs fields. Fixes #242
1 parent ba59027 commit 5427e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/ipkg.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Rx = require 'rx-lite'
44

55
optionsRegexp = /opts\s*=\s*\"([^\"]*)\"/
66
sourcedirRegexp = /sourcedir\s*=\s*([a-zA-Z/0-9.]+)/
7-
pkgsRegexp = /pkgs\s*=\s*(([a-zA-Z/0-9., ]+\s{0,1})*)/
7+
pkgsRegexp = /pkgs\s*=\s*(([a-zA-Z/0-9., -_]+\s{0,1})*)/
88

99
# Find all ipkg-files in a directory and returns
1010
# an observable of an array of files

0 commit comments

Comments
 (0)