Skip to content

Instantly share code, notes, and snippets.

@viatsko
Created August 31, 2014 19:08
Show Gist options
  • Save viatsko/4a341368eb4fc1a95704 to your computer and use it in GitHub Desktop.
Save viatsko/4a341368eb4fc1a95704 to your computer and use it in GitHub Desktop.
Чек на расширение картинки в js
if (!filename.match(/(jpe?g|png|gif)$/)){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment