mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
keep delimitor space in array value
This commit is contained in:
@@ -163,7 +163,7 @@ public class RubyGemspecAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
String.format("\\s*?%s\\.%s\\s*?=\\s*?\\[(.*?)\\]", blockVariable, fieldPattern), Pattern.CASE_INSENSITIVE).matcher(contents);
|
String.format("\\s*?%s\\.%s\\s*?=\\s*?\\[(.*?)\\]", blockVariable, fieldPattern), Pattern.CASE_INSENSITIVE).matcher(contents);
|
||||||
if(arrayMatcher.find()) {
|
if(arrayMatcher.find()) {
|
||||||
String arrayValue = arrayMatcher.group(1);
|
String arrayValue = arrayMatcher.group(1);
|
||||||
value = arrayValue.replaceAll("\\s*?['\"]", "").trim(); //strip quotes
|
value = arrayValue.replaceAll("['\"]", "").trim(); //strip quotes
|
||||||
}
|
}
|
||||||
//capture single value between quotes
|
//capture single value between quotes
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user