@emmetio/extract-abbreviation
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -257,2 +257,7 @@ 'use strict'; | ||
const defaultOptions = { | ||
syntax: 'markup', | ||
lookAhead: null | ||
}; | ||
/** | ||
@@ -283,8 +288,5 @@ * Extracts Emmet abbreviation from given string. | ||
if (typeof options === 'boolean') { | ||
options = { lookAhead: options }; | ||
options = Object.assign(defaultOptions, { lookAhead: options }); | ||
} else { | ||
options = Object.assign({ | ||
syntax: 'markup', | ||
lookAhead: null | ||
}, options); | ||
options = Object.assign(defaultOptions, options); | ||
} | ||
@@ -291,0 +293,0 @@ |
@@ -255,2 +255,7 @@ /** | ||
const defaultOptions = { | ||
syntax: 'markup', | ||
lookAhead: null | ||
}; | ||
/** | ||
@@ -281,8 +286,5 @@ * Extracts Emmet abbreviation from given string. | ||
if (typeof options === 'boolean') { | ||
options = { lookAhead: options }; | ||
options = Object.assign(defaultOptions, { lookAhead: options }); | ||
} else { | ||
options = Object.assign({ | ||
syntax: 'markup', | ||
lookAhead: null | ||
}, options); | ||
options = Object.assign(defaultOptions, options); | ||
} | ||
@@ -289,0 +291,0 @@ |
{ | ||
"name": "@emmetio/extract-abbreviation", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Extracts Emmet abbreviation from string", | ||
@@ -5,0 +5,0 @@ "main": "dist/extract-abbreviation.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19881
637