Izmjenjena struktura, dodan backand

This commit is contained in:
GotPPay
2017-10-16 11:19:46 +02:00
parent 1ec88afacb
commit 048e32c4aa
37153 changed files with 2975854 additions and 1 deletions

35
web/node_modules/jest-regex-util/build-es5/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
'use strict'; /**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
var path = require('path');
var escapePathForRegex = function escapePathForRegex(dir) {
if (path.sep === '\\') {
// Replace "\" with "/" so it's not escaped by escapeStrForRegex.
// replacePathSepForRegex will convert it back.
dir = dir.replace(/\\/g, '/');
}
return replacePathSepForRegex(escapeStrForRegex(dir));
};
var escapeStrForRegex = function escapeStrForRegex(string) {return (
string.replace(/[[\]{}()*+?.\\^$|]/g, '\\$&'));};
var replacePathSepForRegex = function replacePathSepForRegex(string) {
if (path.sep === '\\') {
return string.replace(/(\/|\\(?!\.))/g, '\\\\');
}
return string;
};
module.exports = {
escapePathForRegex: escapePathForRegex,
escapeStrForRegex: escapeStrForRegex,
replacePathSepForRegex: replacePathSepForRegex };