Skip to content

Commit f0f8dd9

Browse files
committed
Fix the rest of the linter errors
1 parent cf0466b commit f0f8dd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const nextMode = mode => {
2222
// Matchers for retrieving config JSON from terminal
2323
// Remove ANSI escape code sequences. Visualization: https://goo.gl/IY8vuU
2424
const ansiEscapeCodes = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/gm
25-
// Match hyperlayout config string and ignore lints. Visualization: https://goo.gl/hxz4S1
26-
const configMatcher = /(?:.|\s)*\[hyperlayout config\]:((?:.|\s)*})(?:.|\s)*/gm
25+
// Match hyperlayout config string and ignore lints. Visualization: https://goo.gl/afYmAO
26+
const configMatcher = /(?:.|\s)*\[hyperlayout config]:((?:.|\s)*})(?:.|\s)*/gm
2727
// Cross-os new-line characters. Visualization: https://goo.gl/q501uy
2828
const newlines = /[\n\r]/gm
2929

@@ -159,14 +159,14 @@ function focusUid({dispatch}, uid) {
159159

160160
// Listens for cli commands and sessions
161161
exports.middleware = store => next => action => {
162-
const {type, data} = action
162+
let {type, data} = action
163163
const {sessions} = store.getState()
164164
const {activeUid} = sessions
165165

166166
// Check for hyperlayout config
167167
if (type === 'SESSION_ADD_DATA') {
168168
data = data.replace(ansiEscapeCodes, '')
169-
const testedData = configMatcher.exec(data.trim());
169+
const testedData = configMatcher.exec(data.trim())
170170
if (testedData && testedData[1]) {
171171
const config = JSON.parse(testedData[1].replace(newlines, ''))
172172
hyperlayout = new Hyperlayout(config, store)

0 commit comments

Comments
 (0)