Skip to content

Commit

Permalink
Allow copying whitespace-only text (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Oct 26, 2022
1 parent 27f85a1 commit 9ed5d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -35,7 +35,7 @@ const create = (win, options) => {
}

const {editFlags} = props;
const hasText = props.selectionText.trim().length > 0;
const hasText = props.selectionText.length > 0;
const isLink = Boolean(props.linkURL);
const can = type => editFlags[`can${type}`] && hasText;

Expand Down

0 comments on commit 9ed5d4b

Please sign in to comment.