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

Added isBitcoinAddress Function #1128

Closed
wants to merge 1 commit into from

Conversation

SHUBHAMGOGATE
Copy link

No description provided.

Copy link
Member

@rubiin rubiin left a comment

Choose a reason for hiding this comment

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

there are three types of address associated with bitcoin. The regex only checks for two

@ezkemboi
Copy link
Member

@rubiin you can help @SHUBHAMGOGATE understand the third address that is not checked for.
It will help get the feature easily rectified and shipped.

cc. @profnandaa.

@rubiin
Copy link
Member

rubiin commented Oct 15, 2019

@ezkemboi sure

import assertString from './util/assertString';

/* eslint-disable no-control-regex */
let bitcoinregex = /^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$/;
Copy link
Member

Choose a reason for hiding this comment

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

I think we use camel casing here i.e bitcoinRegex

@profnandaa
Copy link
Member

Closed in #1163

@profnandaa profnandaa closed this Feb 15, 2020
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.

4 participants