We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1fe67e commit e26420aCopy full SHA for e26420a
dependency_manager.rb
@@ -2,7 +2,7 @@
2
# @Author: Dev_NIX
3
# @Date: 2016-03-07 14:24:11
4
# @Last Modified by: Dev_NIX
5
-# @Last Modified time: 2016-03-07 16:06:55
+# @Last Modified time: 2016-03-07 16:36:38
6
7
def check_plugins(dependencies)
8
installed_dependencies = []
@@ -13,7 +13,12 @@ def check_plugins(dependencies)
13
raw_list = raw_output.split("\n")
14
15
raw_list.each do |plugin|
16
- installed_dependencies.push plugin.slice((plugin.index("\e[0m")+4)..(plugin.index("(")-1)).strip
+ if plugin.index("\e[0m") != nil
17
+ first = plugin.index("\e[0m") + 4
18
+ else
19
+ first = 0
20
+ end
21
+ installed_dependencies.push plugin.slice((first)..(plugin.index("(")-1)).strip
22
end
23
24
no_missing = false
0 commit comments