nav tabs on admin dashboard
This commit is contained in:
+26
-5
@@ -1,11 +1,32 @@
|
||||
2018-01-03: Version 0.3.0
|
||||
* Add support for [named capturing groups](https://github.com/tc39/proposal-regexp-named-groups) (issue #83)
|
||||
* Add polyfill for `fromCodePoint` for Nodejs < 4 (issue #86)
|
||||
|
||||
2017-02-23: Version 0.2.1
|
||||
* Correctly specify license in `package.json`
|
||||
|
||||
2016-05-24: Version 0.2.0
|
||||
* Introduce a third argument to the `parse` function for toggling (experimental) features
|
||||
* Add experimental support for parsing "\p{…} and \P{…} in Unicode mode" (issue #78)
|
||||
* Add `-v`/`--version` and `-f`/`--flags` arguments to the cli command `regjsparser` (issue #79)
|
||||
|
||||
2015-08-16: Version 0.1.5
|
||||
* Add better error message on parser errors (issues #74 and #76)
|
||||
|
||||
2015-02-28: Version 0.1.4
|
||||
* Fix parsing of backreferences, which are sometimes parsed as octal escapes (issue #70)
|
||||
|
||||
2014-11-25: Version 0.1.3
|
||||
* Remove the upper limit of hex digits in Unicode code point escapes (issue #69)
|
||||
|
||||
2014-08-31: Version 0.1.2
|
||||
* Change the field ref to matchIndex on the type=refernce node (issue #67)
|
||||
* Change the field ref to matchIndex on the type=reference node (issue #67)
|
||||
|
||||
2014-08-30: Version 0.1.1
|
||||
* Only handled unicode code point escapes if 'u' flag is set (issue #56)
|
||||
* Removed `matchIdx` from the AST
|
||||
* References like /\1/ were broken (issue #57)
|
||||
* Renamed type `ref` to `reference` in the AST
|
||||
* Only handle unicode code point escapes if 'u' flag is set (issue #56)
|
||||
* Remove `matchIdx` from the AST
|
||||
* Fix references like /\1/ (issue #57)
|
||||
* Rename type `ref` to `reference` in the AST
|
||||
* Update regex to match identifier and include script to generate regex
|
||||
|
||||
2014-06-29: Version 0.1.0
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
Copyright (c) Julian Viereck and Contributors, All Rights Reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
||||
+13
@@ -15,6 +15,19 @@ var parse = require('regjsparser').parse;
|
||||
|
||||
var parseTree = parse('^a'); // /^a/
|
||||
console.log(parseTree);
|
||||
|
||||
// Toggle on/off additional features:
|
||||
var parseTree = parse('^a', '', {
|
||||
// SEE: https://github.com/jviereck/regjsparser/pull/78
|
||||
unicodePropertyEscape: true,
|
||||
|
||||
// SEE: https://github.com/jviereck/regjsparser/pull/83
|
||||
namedGroups: true,
|
||||
|
||||
// SEE: https://github.com/jviereck/regjsparser/pull/89
|
||||
lookbehind: true
|
||||
});
|
||||
console.log(parseTree);
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
+15
-2
@@ -2,17 +2,21 @@
|
||||
(function() {
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var parse = require('../parser').parse;
|
||||
var jsesc = require('jsesc');
|
||||
var regexes = process.argv.splice(2);
|
||||
var first = regexes[0];
|
||||
var data;
|
||||
var log = console.log;
|
||||
var flags = '';
|
||||
var main = function() {
|
||||
if (/^(?:-h|--help|undefined)$/.test(first)) {
|
||||
log([
|
||||
'\nUsage:\n',
|
||||
'\tregjsparser [regex ...]',
|
||||
'\tregjsparser [-f | --flags] u [regex ...]',
|
||||
'\tregjsparser [-v | --version]',
|
||||
'\tregjsparser [-h | --help]',
|
||||
'\nExamples:\n',
|
||||
'\tregjsparser \'^foo.bar$\'',
|
||||
@@ -21,10 +25,19 @@
|
||||
return process.exit(1);
|
||||
}
|
||||
|
||||
if (/^(?:-v|--version)$/.test(first)) {
|
||||
log('v%s', require(path.resolve(__dirname, '../package.json')).version);
|
||||
return process.exit(1);
|
||||
}
|
||||
|
||||
if (/^(?:-f|--flags)$/.test(first)) {
|
||||
flags = regexes[1];
|
||||
regexes = regexes.slice(2);
|
||||
}
|
||||
|
||||
regexes.forEach(function(snippet) {
|
||||
var result;
|
||||
try {
|
||||
result = parse(snippet);
|
||||
result = parse(snippet, flags);
|
||||
log(jsesc(result, {
|
||||
'json': true,
|
||||
'compact': false,
|
||||
|
||||
+12
-13
@@ -1,27 +1,26 @@
|
||||
{
|
||||
"_from": "regjsparser@^0.1.4",
|
||||
"_id": "regjsparser@0.1.5",
|
||||
"_from": "regjsparser@^0.6.0",
|
||||
"_id": "regjsparser@0.6.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=",
|
||||
"_integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==",
|
||||
"_location": "/regjsparser",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "regjsparser@^0.1.4",
|
||||
"raw": "regjsparser@^0.6.0",
|
||||
"name": "regjsparser",
|
||||
"escapedName": "regjsparser",
|
||||
"rawSpec": "^0.1.4",
|
||||
"rawSpec": "^0.6.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.1.4"
|
||||
"fetchSpec": "^0.6.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/css-selector-tokenizer/regexpu-core",
|
||||
"/regexpu-core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz",
|
||||
"_shasum": "7ee8f84dc6fa792d3fd0ae228d24bd949ead205c",
|
||||
"_spec": "regjsparser@^0.1.4",
|
||||
"_resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz",
|
||||
"_shasum": "f1e6ae8b7da2bae96c99399b868cd6c933a2ba9c",
|
||||
"_spec": "regjsparser@^0.6.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\regexpu-core",
|
||||
"author": {
|
||||
"name": "'Julian Viereck'",
|
||||
@@ -41,7 +40,7 @@
|
||||
"description": "Parsing the JavaScript's RegExp in JavaScript.",
|
||||
"devDependencies": {
|
||||
"regenerate": "~1.0.1",
|
||||
"unicode-7.0.0": "~0.1.5"
|
||||
"unicode-11.0.0": "^0.7.8"
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
@@ -50,7 +49,7 @@
|
||||
"README.md"
|
||||
],
|
||||
"homepage": "https://github.com/jviereck/regjsparser",
|
||||
"license": "BSD",
|
||||
"license": "BSD-2-Clause",
|
||||
"main": "./parser",
|
||||
"name": "regjsparser",
|
||||
"repository": {
|
||||
@@ -60,5 +59,5 @@
|
||||
"scripts": {
|
||||
"test": "node test/index.js"
|
||||
},
|
||||
"version": "0.1.5"
|
||||
"version": "0.6.0"
|
||||
}
|
||||
|
||||
+230
-35
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user