GitXplorerGitXplorer
t

is-diacritical-mark

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
80964ce9ace21b7a477d6e94b515af86299e3256

1.0.2

ttrodrigues committed 11 years ago
Unverified
171fb0fa8a07848e20aad4ba1b03cdeeedb477fb

check for char code index, not value itself

ttrodrigues committed 11 years ago
Unverified
77aeaf51211a212e5f9278a6493f509c5deb4457

1.0.1

ttrodrigues committed 11 years ago
Unverified
45f86384350a3325f065546b1b41c0ff2b393e15

tests and bugfixes

ttrodrigues committed 11 years ago
Unverified
0b56b5e81b6baa7f4c20c5ad0d20cf48fd3376b9

gitignore

ttrodrigues committed 11 years ago
Unverified
c38dba819e5b16f6a6e0bb0bfb91e9750b2dc819

Moar readme

ttrodrigues committed 11 years ago

README

The README file for this repository.

Checks for diacritical marks

This simple module provides 2 methods to check if a character is a diacritical mark, more specifically, accents.

This is useful for cases where you're firing events on everything a user types but you might want to ignore when he types an accent before the character the accent is applied on.

The following accents are detected:

^
`
~
¨
´

Install

npm install is-diacritical-mark

fromCode(code)

Takes a charCode and returns true if the code for the character matches.

fromChar(char)

Takes a character and returns true if the character matches.