Skip to content

Commit

Permalink
fix(syntax): fixed errors reported by ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmecham committed Apr 12, 2022
1 parent 7cd0e9a commit 0a4af90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Scripts/RuboCopProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class RuboCopProcess {

async execute(content, uri) {
let workspaceOverlap = uri.indexOf(nova.workspace.path);
let relativePath = '';
let relativePath = "";

if (workspaceOverlap != -1) {
relativePath = uri.substring(workspaceOverlap + nova.workspace.path.length + 1);
Expand Down
6 changes: 4 additions & 2 deletions Source/Scripts/extractJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Copyright © 2019-2022 Justin Mecham. All rights reserved.
//

export default function extractJSON(string) {
return string.match(/\{.*\:\{.*\:.*\}\}/);
function extractJSON(string) {
return string.match(/\{.*:\{.*:.*\}\}/);
}

module.exports = extractJSON;

0 comments on commit 0a4af90

Please sign in to comment.