File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -716,7 +716,7 @@ const EditingWorkspace: React.FC<EditingWorkspaceProps> = props => {
716716
717717function 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
722722export default EditingWorkspace ;
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export const parseModeString = (
106106 library : ExternalLibraryName . NONE
107107 } ;
108108 default : {
109- const matches = modeString . match ( / s o u r c e ( - ? \d + ) ( [ a - z \ -] + ) ( [ A - Z ] + ) / ) ;
109+ const matches = modeString . match ( / s o u r c e ( - ? \d + ) ( [ a - z - ] + ) ( [ A - Z ] + ) / ) ;
110110 if ( ! matches ) {
111111 throw new Error ( 'Invalid modeString' ) ;
112112 }
You can’t perform that action at this time.
0 commit comments