项目原始demo,不改动
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # filename-regex [![NPM version](https://img.shields.io/npm/v/filename-regex.svg?style=flat)](https://www.npmjs.com/package/filename-regex) [![NPM monthly downloads](https://img.shields.io/npm/dm/filename-regex.svg?style=flat)](https://npmjs.org/package/filename-regex) [![NPM total downloads](https://img.shields.io/npm/dt/filename-regex.svg?style=flat)](https://npmjs.org/package/filename-regex) [![Linux Build Status](https://img.shields.io/travis/regexhq/filename-regex.svg?style=flat&label=Travis)](https://travis-ci.org/regexhq/filename-regex)
  2. > Regular expression for matching file names, with or without extension.
  3. ## Install
  4. Install with [npm](https://www.npmjs.com/):
  5. ```sh
  6. $ npm install --save filename-regex
  7. ```
  8. ## Usage
  9. ```js
  10. var regex = require('filename-regex');
  11. 'a/b/c/d.min.js'.match(regex());
  12. //=> match[0] = 'd.min.js'
  13. 'a/b/c/.dotfile'.match(regex());
  14. //=> match[0] = '.dotfile'
  15. ```
  16. ## About
  17. ### Contributing
  18. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
  19. ### Building docs
  20. _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
  21. To generate the readme, run the following command:
  22. ```sh
  23. $ npm install -g verbose/verb#dev verb-generate-readme && verb
  24. ```
  25. ### Running tests
  26. Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
  27. ```sh
  28. $ npm install && npm test
  29. ```
  30. ### Author
  31. **Jon Schlinkert**
  32. * [github/jonschlinkert](https://github.com/jonschlinkert)
  33. * [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
  34. ### License
  35. Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
  36. Released under the [MIT License](LICENSE).
  37. ***
  38. _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on April 28, 2017._