Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Addition Methods: New method nisBr (#2196)#2203

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

cleitonmendonca
Copy link
Contributor

@cleitonmendoncacleitonmendonca commentedAug 20, 2018
edited
Loading

Fixes new implementation
Fixes#2196

Description

Thank you!

@cleitonmendoncacleitonmendonca changed the titleAddition Methods: New method nisBr (#2169)Addition Methods: New method nisBr (#2196)Aug 20, 2018
Copy link
Member

@ArkniArkni left a comment
edited
Loading

Choose a reason for hiding this comment

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

Hi @csmendonca,

Thanks a lot for your contribution :)

Overall, it looks good to me. I only have three changes to be made, and after that I will merge.

*/

$.validator.addMethod( "nisBR", function( value ) {

Copy link
Member

Choose a reason for hiding this comment

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

Please remove this empty line.

* @Description Brazillian PIS or NIS number (Número de Identificação Social Pis ou Pasep) is the equivalent of a
* Brazilian tax registration number NIS of PIS numbers have 11 digits in total: 10 numbers followed by 1 check numbers
* that are being used for validation.
* @copyright (c) 25/10/2016 22:40, Cleiton da Silva Mendonça
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 this is a copy-paste error. Can you please adjust the date to the right one.

//Get check number of value
cn = parseInt( value.substring( 10, 11 ), 10 );

//Get number with 10 digits of the value
Copy link
Member

Choose a reason for hiding this comment

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

Please add a space before this comment and the one above it in order to be consistent with the rest of the comments.

cleitonmendonca added a commit to cleitonmendonca/jquery-validation that referenced this pull requestAug 21, 2018
@cleitonmendonca
Copy link
ContributorAuthor

Hi@Arkini,

Thanks for your attention.
I'm going to do that changes.

cleitonmendonca added a commit to cleitonmendonca/jquery-validation that referenced this pull requestAug 21, 2018
cleitonmendonca added a commit to cleitonmendonca/jquery-validation that referenced this pull requestAug 21, 2018
Reviewer of new method nisBr, removing extra spaces.Fixesjquery-validation#2203
@cleitonmendoncacleitonmendonca deleted the nis-br-method branchAugust 21, 2018 12:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ArkniArkniArkni left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@cleitonmendonca@Arkni

[8]ページ先頭

©2009-2025 Movatter.jp