Skip to content

Conversation

ZSkycat
Copy link
Contributor

@ZSkycat ZSkycat commented Jul 6, 2018

Fixes #23

index.js Outdated
'use strict';

module.exports = () => {
module.exports = onlyFirst => {
Copy link
Member

@sindresorhus sindresorhus Jul 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be an options-object. ansiRegex(true) would be a really unreadable API.

@sindresorhus sindresorhus changed the title Allowing regex to match only first (#23) Add option to only match the first occurrence Jul 6, 2018
@sindresorhus
Copy link
Member

Needs to be documented too. Should follow this format: https://github.com/sindresorhus/email-regex#api

@sindresorhus sindresorhus merged commit eac826a into chalk:master Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants