Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
'use strict';
module.exports = function () {
return /\bv?(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?\b/ig;
};

View File

@@ -0,0 +1,67 @@
{
"_from": "semver-regex@^1.0.0",
"_id": "semver-regex@1.0.0",
"_inBundle": false,
"_integrity": "sha1-kqSWkGX5xwxpR1PVUkj8aPj2Usk=",
"_location": "/semver-regex",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "semver-regex@^1.0.0",
"name": "semver-regex",
"escapedName": "semver-regex",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/find-versions"
],
"_resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-1.0.0.tgz",
"_shasum": "92a4969065f9c70c694753d55248fc68f8f652c9",
"_spec": "semver-regex@^1.0.0",
"_where": "D:\\developments\\teaser-inertia\\nova-components\\NovaLeader\\node_modules\\find-versions",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/semver-regex/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Regular expression for matching semver versions",
"devDependencies": {
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/semver-regex#readme",
"keywords": [
"semver",
"version",
"versions",
"regex",
"regexp",
"re",
"match",
"matching",
"semantic"
],
"license": "MIT",
"name": "semver-regex",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/semver-regex.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.0"
}

View File

@@ -0,0 +1,36 @@
# semver-regex [![Build Status](https://travis-ci.org/sindresorhus/semver-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/semver-regex)
> Regular expression for matching [semver](https://github.com/isaacs/node-semver) versions
## Install
```sh
$ npm install --save semver-regex
```
## Usage
```js
var semverRegex = require('semver-regex');
semverRegex().test('v1.0.0');
//=> true
semverRegex().test('1.2.3-alpha.10.beta.0+build.unicorn.rainbow');
//=> true
semverRegex().exec('unicorn 1.0.0 rainbow')[0];
//=> 1.0.0
'unicorn 1.0.0 and rainbow 2.1.3'.match(semverRegex());
//=> ['1.0.0', '2.1.3']
```
*It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.*
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)