@coolon/angular-ui-powerups 12.4.0-alpha.80 → 12.4.0-alpha.81

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.
@@ -5108,11 +5108,12 @@
5108
5108
  }
5109
5109
  };
5110
5110
  MarkdownComponent.prototype.extractInnerContent = function (content) {
5111
- var lines = content.split("\n");
5112
- var prefix = lines.reduce(function (maxPrefix, line) {
5113
- return Math.max(maxPrefix, line.search(/\S/));
5114
- }, 0);
5115
- return lines.map(function (l) { return l.substr(prefix); }).join("\n");
5111
+ var lines = content.split('\n');
5112
+ var prefix = lines.reduce(function (minPrefix, line) {
5113
+ var leadingWhitespace = line.search(/\S/);
5114
+ return leadingWhitespace < 0 ? minPrefix : Math.min(minPrefix, leadingWhitespace);
5115
+ }, Number.MAX_SAFE_INTEGER);
5116
+ return lines.map(function (l) { return l.substr(prefix); }).join('\n');
5116
5117
  };
5117
5118
  MarkdownComponent.prototype.renderContent = function (content) {
5118
5119
  if (!___namespace.isNil(content)) {