Comparing version 0.7.6 to 0.7.7
{ | ||
"name": "c3", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "D3-based reusable chart library", | ||
@@ -5,0 +5,0 @@ "main": "c3.js", |
@@ -89,4 +89,9 @@ import CLASS from './class'; | ||
ChartInternal.prototype.getTargetSelectorSuffix = function (targetId) { | ||
return this.generateTargetClass(targetId) | ||
.replace(/([?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1'); | ||
const targetClass = this.generateTargetClass(targetId); | ||
if (window.CSS && window.CSS.escape) { | ||
return window.CSS.escape(targetClass); | ||
} | ||
// fallback on imperfect method for old browsers (does not handles unicode) | ||
return targetClass.replace(/([?!@#$%^&*()=+,.<>'":;\[\]\/|~`{}\\])/g, '\\$1'); | ||
}; | ||
@@ -93,0 +98,0 @@ ChartInternal.prototype.selectorTarget = function (id, prefix) { |
@@ -23,3 +23,3 @@ import { | ||
var c3 = { | ||
version: "0.7.6", | ||
version: "0.7.7", | ||
chart: { | ||
@@ -26,0 +26,0 @@ fn: Chart.prototype, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
996357
19437