Skip to content

Commit 52e6228

Browse files
Thom MaySeth Falcon
authored andcommitted
actually just use the regex directly
1 parent 8c7e2f8 commit 52e6228

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

chef/lib/chef/run_list/run_list_item.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
require 'chef/cookbook/metadata/version'
19-
2018
class Chef
2119
class RunList
2220
class RunListItem
23-
QUALIFIED_RECIPE = %r{^recipe\[([^\],]+)(,(#{Chef::Cookbook::Metadata::Version::PATTERN}))?\]$}
21+
QUALIFIED_RECIPE = %r{^recipe\[([^\],]+)(,([0-9]+(\.[0-9]+){1,2}))?\]$}
2422
QUALIFIED_ROLE = %r{^role\[([^\]]+)\]$}
2523

2624
attr_reader :name, :type, :version

0 commit comments

Comments
 (0)