|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
441 bytes
|
| Line | |
|---|
| 1 | /*!
|
|---|
| 2 | * is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|---|
| 3 | *
|
|---|
| 4 | * Copyright (c) 2014-2016, Jon Schlinkert.
|
|---|
| 5 | * Licensed under the MIT License.
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | module.exports = function isExtglob(str) {
|
|---|
| 9 | if (typeof str !== 'string' || str === '') {
|
|---|
| 10 | return false;
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | var match;
|
|---|
| 14 | while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
|
|---|
| 15 | if (match[2]) return true;
|
|---|
| 16 | str = str.slice(match.index + match[0].length);
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | return false;
|
|---|
| 20 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.