Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Re-apply the non-breaking pieces reverted in #6112 (#6170)
Browse files Browse the repository at this point in the history
  • Loading branch information
loganfsmyth authored and jasonLaster committed May 8, 2018
1 parent 33dcd85 commit 1e1d1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export function findFunctionText(
return null;
}

const { location: { start, end } } = func;
const {
location: { start, end }
} = func;
const lines = source.text.split("\n");
const firstLine = lines[start.line - 1].slice(start.column);
const lastLine = lines[end.line - 1].slice(0, end.column);
Expand Down

0 comments on commit 1e1d1b8

Please sign in to comment.