Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to exclude emoji #2851

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

JDP818
Copy link

@JDP818 JDP818 commented Apr 25, 2024

@JDP818 JDP818 requested a review from a team as a code owner April 25, 2024 18:14
Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b9b8e42
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/662aad5e9528d600074709ef
😎 Deploy Preview https://deploy-preview-2851.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JDP818 JDP818 changed the title 2623 add option to exclude emoji add option to exclude emoji Apr 25, 2024
Copy link

codecov bot commented Apr 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.96%. Comparing base (16ba43a) to head (b9b8e42).
Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2851      +/-   ##
==========================================
- Coverage   99.96%   99.96%   -0.01%     
==========================================
  Files        2973     2973              
  Lines      212501   212536      +35     
  Branches      950      951       +1     
==========================================
+ Hits       212429   212462      +33     
- Misses         72       74       +2     
Files Coverage Δ
src/locales/en/person/bio_pattern.ts 100.00% <100.00%> (ø)
src/locales/eo/person/bio_pattern.ts 100.00% <100.00%> (ø)
src/locales/zh_CN/person/bio_pattern.ts 100.00% <100.00%> (ø)
src/modules/person/index.ts 96.95% <100.00%> (+0.14%) ⬆️

... and 1 file with indirect coverage changes

@JDP818 JDP818 changed the title add option to exclude emoji feat: add option to exclude emoji Apr 25, 2024
@JDP818 JDP818 closed this Apr 25, 2024
@JDP818 JDP818 reopened this Apr 25, 2024
@ST-DDT ST-DDT linked an issue Apr 25, 2024 that may be closed by this pull request
@ST-DDT ST-DDT added c: feature Request for new feature p: 1-normal Nothing urgent m: person Something is referring to the person module s: waiting for user interest Waiting for more users interested in this feature labels Apr 25, 2024
@ST-DDT ST-DDT added this to the vFuture milestone Apr 25, 2024
*
* @default Object.keys(faker.definitions.person.bio_pattern)
*/
types?: ReadonlyArray<BioType>;
Copy link
Member

Choose a reason for hiding this comment

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

Method options usally not provide extra or even replacement locale data. We usually allow users to control the method outcome through flags. In this case I could see such an option being named "includeEmojis" or "allowEmojis". We have similar options for:

this.faker.definitions.person.bio_pattern
) as BioType[],
} = options;
const bioType = this.faker.helpers.arrayElement(types);
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't we simply get rid of '{{internet.emoji}}' here?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe lets check the requirements and intentions behind including emojis in the next team meeting.

@ST-DDT ST-DDT added the s: needs decision Needs team/maintainer decision label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: feature Request for new feature m: person Something is referring to the person module p: 1-normal Nothing urgent s: needs decision Needs team/maintainer decision s: waiting for user interest Waiting for more users interested in this feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to exclude emoji
3 participants