monkey-style-guide 2.0.196 → 2.0.197

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.
@@ -6793,7 +6793,7 @@ class MonkeyFileUploadComponent {
6793
6793
  const { name, size } = file;
6794
6794
  if (configFiles.allowedExtensions) {
6795
6795
  const hasAllowedExtensions = configFiles.allowedExtensions.filter((allow) => {
6796
- const extension = name.substr(name.indexOf('.', -name.length));
6796
+ const extension = name.substring(name.lastIndexOf('.'), name.length);
6797
6797
  return (allow.extension.toLowerCase() === extension.toLowerCase() ||
6798
6798
  !MonkeyUtils.persistNullEmptyUndefined(extension));
6799
6799
  }).length > 0;