Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,9 @@
'use strict';
var xmlChars = require('xml-char-classes');
function getRange(re) {
return re.source.slice(1, -1);
}
// http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName
module.exports = new RegExp('^[' + getRange(xmlChars.letter) + '_][' + getRange(xmlChars.letter) + getRange(xmlChars.digit) + '\\.\\-_' + getRange(xmlChars.combiningChar) + getRange(xmlChars.extender) + ']*$');

View File

@@ -0,0 +1,74 @@
{
"_args": [
[
"ncname@1.0.0",
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project"
]
],
"_from": "ncname@1.0.0",
"_id": "ncname@1.0.0",
"_inBundle": false,
"_integrity": "sha1-W1etGLHKCShk72Kwse2BlPODtxw=",
"_location": "/react-scripts/ncname",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "ncname@1.0.0",
"name": "ncname",
"escapedName": "ncname",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/react-scripts/html-minifier"
],
"_resolved": "https://registry.npmjs.org/ncname/-/ncname-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\torrent-project",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/ncname/issues"
},
"dependencies": {
"xml-char-classes": "^1.0.0"
},
"description": "Regular expression for matching XML NCName",
"devDependencies": {
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/ncname#readme",
"keywords": [
"ncname",
"ncnamechar",
"xml",
"re",
"regex",
"name",
"element",
"tag",
"match",
"unicode"
],
"license": "MIT",
"name": "ncname",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/ncname.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.0"
}

View File

@@ -0,0 +1,28 @@
# ncname [![Build Status](https://travis-ci.org/sindresorhus/ncname.svg?branch=master)](https://travis-ci.org/sindresorhus/ncname)
> Regular expression for matching [XML NCName](http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName)
## Install
```sh
$ npm install --save ncname
```
## Usage
```js
var ncname = require('ncname');
ncname.test('hællæ');
//=> true
ncname.test('$unicorn');
//=> false
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)