Skip to content

Commit

Permalink
fix: add code origin comment
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Nov 4, 2024
1 parent 7253700 commit 8280f94
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/validation/isByteLength.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* This code was adapted from the `validator.js` package
* https://github.com/validatorjs/validator.js/tree/master
*/

export function isByteLength(
str: string,
options?: Partial<{ min: number; max: number }>,
Expand Down
4 changes: 4 additions & 0 deletions src/validation/isEmail.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This code was adapted from the `validator.js` package
* https://github.com/validatorjs/validator.js/tree/master
*/
import { isByteLength } from './isByteLength.js';
import { isFQDN } from './isFQDN.js';
import { isIP } from './isIP.js';
Expand Down
4 changes: 4 additions & 0 deletions src/validation/isFQDN.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This code was adapted from the `validator.js` package
* https://github.com/validatorjs/validator.js/tree/master
*/
import { merge } from './utils.js';

const DEFAULT_FQDN_OPTIONS = {
Expand Down
4 changes: 4 additions & 0 deletions src/validation/isIP.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This code was adapted from the `validator.js` package
* https://github.com/validatorjs/validator.js/tree/master
*/
/**
11.3. Examples
Expand Down

0 comments on commit 8280f94

Please sign in to comment.