drivelist
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -50,2 +50,10 @@ var yaml, _; | ||
var result; | ||
device = _.chain(device).split('\n').map(function(line) { | ||
return line.replace(/"/g, function(match, index, string) { | ||
if (_.any([string.indexOf('"') === index, string.lastIndexOf('"') === index])) { | ||
return match; | ||
} | ||
return '\\"'; | ||
}); | ||
}).join('\n').value(); | ||
result = yaml.safeLoad(device); | ||
@@ -52,0 +60,0 @@ if (_.isString(result)) { |
ChangeLog | ||
--------- | ||
### v2.0.11 | ||
- Escape double quotes in description to prevent YAML errors. | ||
### v2.0.10 | ||
@@ -5,0 +9,0 @@ |
{ | ||
"name": "drivelist", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "List all connected drives in your computer, in all major operating systems", | ||
@@ -5,0 +5,0 @@ "main": "build/drivelist.js", |
@@ -12,3 +12,3 @@ drivelist | ||
Notice that this module **does not require** admin privileges to get the drives in any operating system supported. | ||
Notice that this module **does not require** admin privileges to get the drives in any supported operating system. | ||
@@ -15,0 +15,0 @@ Supports: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31129
242