gd-bs 6.6.20 → 6.6.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,9 @@ var generateIcon = function (svg, height, width, className, placeholders) {
9
9
  if (placeholders > 0) {
10
10
  // Parse the number of placeholders
11
11
  for (var i = 0; i < placeholders; i++) {
12
+ var regex = new RegExp("/\{" + i + "\}/g");
12
13
  // Replace the placeholder
13
- svg = svg.replace("{" + i + "}", Date.now().toString());
14
+ svg = svg.replace(regex, Date.now().toString());
14
15
  }
15
16
  }
16
17
  // Get the icon element