@manuscripts/style-guide 3.1.6 → 3.1.7

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.
@@ -127,6 +127,5 @@ const isImageFile = (name) => {
127
127
  };
128
128
  exports.isImageFile = isImageFile;
129
129
  const getExtension = (name) => {
130
- const index = name.indexOf('.');
131
- return index ? name.substring(index + 1) : '';
130
+ return name.toLowerCase().split('.').pop() || '';
132
131
  };
@@ -117,6 +117,5 @@ export const isImageFile = (name) => {
117
117
  return getFileType(name) === FileType.Image;
118
118
  };
119
119
  const getExtension = (name) => {
120
- const index = name.indexOf('.');
121
- return index ? name.substring(index + 1) : '';
120
+ return name.toLowerCase().split('.').pop() || '';
122
121
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "3.1.6",
4
+ "version": "3.1.7",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",