Skip to content

refactor: add missing JSDoc documentation#41

Merged
melihbirim merged 2 commits intomainfrom
refactor/improve-jsdoc-documentation
Dec 27, 2025
Merged

refactor: add missing JSDoc documentation#41
melihbirim merged 2 commits intomainfrom
refactor/improve-jsdoc-documentation

Conversation

@melihbirim
Copy link
Copy Markdown
Owner

Description

This PR adds missing JSDoc documentation for two functions in index.js that were previously undocumented.

Changes

  • isRgbColor(): Added comprehensive JSDoc documenting RGB/RGBA color validation with format examples
  • isHashtag(): Added full JSDoc including the options parameter and its preferHashtagOver3CharHex property for disambiguating from 3-character hex colors

Benefits

  • Improves code documentation completeness
  • Better developer experience when using these functions
  • Enhances IDE autocomplete and inline documentation

Testing

  • ✅ All 104 tests passing
  • ✅ ESLint validation successful
  • ✅ No functional changes, documentation only

Added comprehensive JSDoc documentation for two functions that were missing it:

- isRgbColor(): Documents RGB/RGBA color validation with format examples
- isHashtag(): Documents hashtag validation including the preferHashtagOver3CharHex option for disambiguating from 3-char hex colors

Improves code documentation and developer experience when using these functions.
@melihbirim melihbirim merged commit 1ccab73 into main Dec 27, 2025
8 checks passed
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.

1 participant