Skip to content

Commit 0cdd591

Browse files
committed
Fix lint errors
1 parent 21a0b70 commit 0cdd591

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commons/editingWorkspace/EditingWorkspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ const EditingWorkspace: React.FC<EditingWorkspaceProps> = props => {
716716

717717
function uniq(a: string[]) {
718718
const seen: Record<string, boolean> = {};
719-
return a.filter(item => (seen.hasOwnProperty(item) ? false : (seen[item] = true)));
719+
return a.filter(item => (Object.hasOwnProperty.call(seen, item) ? false : (seen[item] = true)));
720720
}
721721

722722
export default EditingWorkspace;

src/commons/utils/AceHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const parseModeString = (
106106
library: ExternalLibraryName.NONE
107107
};
108108
default: {
109-
const matches = modeString.match(/source(-?\d+)([a-z\-]+)([A-Z]+)/);
109+
const matches = modeString.match(/source(-?\d+)([a-z-]+)([A-Z]+)/);
110110
if (!matches) {
111111
throw new Error('Invalid modeString');
112112
}

0 commit comments

Comments
 (0)