split-string
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -91,3 +91,3 @@ /*! | ||
token.value = ''; | ||
if (!this.stack.length && this.last(this.stash) !== '') { | ||
if (!this.stack.length && this.stash.last() !== '') { | ||
this.stash.push(token.value); | ||
@@ -149,3 +149,3 @@ } | ||
lexer.isClose = function(ch) { | ||
const open = this.stack.last; | ||
const open = this.stack.last(); | ||
if (open && typeof open.isClose === 'function') { | ||
@@ -158,3 +158,3 @@ return open.isClose(ch); | ||
if (!val) return; | ||
const last = this.stack.last; | ||
const last = this.stack.last(); | ||
if (last && Array.isArray(last.queue)) { | ||
@@ -161,0 +161,0 @@ last.queue.push(val); |
{ | ||
"name": "split-string", | ||
"description": "Split a string on a character except when the character is escaped.", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"homepage": "https://github.com/jonschlinkert/split-string", | ||
@@ -21,3 +21,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -29,7 +29,7 @@ "scripts": { | ||
"arr-union": "^3.1.0", | ||
"snapdragon-lexer": "^2.0.0" | ||
"snapdragon-lexer": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^1.0.0", | ||
"mocha": "^3.5.3", | ||
"gulp-format-md": "^1.0.0", | ||
"nyc": "^11.4.1" | ||
@@ -36,0 +36,0 @@ }, |
@@ -247,3 +247,3 @@ # split-string [![NPM version](https://img.shields.io/npm/v/split-string.svg?style=flat)](https://www.npmjs.com/package/split-string) [![NPM monthly downloads](https://img.shields.io/npm/dm/split-string.svg?style=flat)](https://npmjs.org/package/split-string) [![NPM total downloads](https://img.shields.io/npm/dt/split-string.svg?style=flat)](https://npmjs.org/package/split-string) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/split-string.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/split-string) | ||
Note that the [snapdragon-lexer](https://github.com/here-be-snapdragons/snapdragon-lexer) instance is exposed as `this` inside the function. See `snapdragon-lexer` for more information and complete API documentation. | ||
Note that the [snapdragon-lexer](https://github.com/here-be/snapdragon-lexer) instance is exposed as `this` inside the function. See `snapdragon-lexer` for more information and complete API documentation. | ||
@@ -273,3 +273,3 @@ ## Split function | ||
Note that the [snapdragon-lexer](https://github.com/here-be-snapdragons/snapdragon-lexer) instance is exposed as `this` inside the function. See `snapdragon-lexer` for more information and complete API documentation. | ||
Note that the [snapdragon-lexer](https://github.com/here-be/snapdragon-lexer) instance is exposed as `this` inside the function. See `snapdragon-lexer` for more information and complete API documentation. | ||
@@ -295,2 +295,3 @@ ## About | ||
</details> | ||
<details> | ||
@@ -322,3 +323,3 @@ <summary><strong>Building docs</strong></summary> | ||
| --- | --- | | ||
| 46 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 49 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 10 | [doowb](https://github.com/doowb) | | ||
@@ -341,2 +342,2 @@ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on January 10, 2018._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on February 16, 2018._ |
338
20685
+ Addedsnapdragon-lexer@3.1.0(transitive)
+ Addedsnapdragon-stack@2.1.0(transitive)
- Removedsnapdragon-lexer@2.0.0(transitive)
- Removedsnapdragon-stack@1.0.1(transitive)
Updatedsnapdragon-lexer@^3.1.0