Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # clone-regexp [![Build Status](https://travis-ci.org/sindresorhus/clone-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/clone-regexp)
  2. > Clone and modify a [RegExp](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) instance
  3. ## Install
  4. ```
  5. $ npm install clone-regexp
  6. ```
  7. ## Usage
  8. ```js
  9. const cloneRegexp = require('clone-regexp');
  10. const regex = /[a-z]/gi;
  11. cloneRegexp(regex);
  12. //=> /[a-z]/gi
  13. cloneRegexp(regex) === regex;
  14. //=> false
  15. cloneRegexp(regex, {global: false});
  16. //=> /[a-z]/i
  17. cloneRegexp(regex, {multiline: true});
  18. //=> /[a-z]/gim
  19. cloneRegexp(regex, {source: 'unicorn'});
  20. //=> /unicorn/gi
  21. ```
  22. ## API
  23. ### cloneRegexp(regexp, [options])
  24. #### regex
  25. Type: `RegExp`
  26. Regex to clone.
  27. #### options
  28. Type: `Object`<br>
  29. Properties: [`source`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source) [`global`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global) [`ignoreCase`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase) [`multiline`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline) [`dotAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll) [`sticky`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky) [`unicode`](http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/#RegExp) [`lastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)
  30. Optionally modify the cloned `RegExp` instance.
  31. ## License
  32. MIT © [Sindre Sorhus](https://sindresorhus.com)