Skip to content

Commit 8fc5478

Browse files
authored
Merge pull request arve0#136 from tlylt/update-hasDelimiters
Update hasDelimiters function documentation
2 parents 8628f07 + bc386ac commit 8fc5478

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,16 @@ exports.addAttrs = function (attrs, token) {
133133
* Does string have properly formatted curly?
134134
*
135135
* start: '{.a} asdf'
136-
* middle: 'a{.b}c'
137136
* end: 'asdf {.a}'
138137
* only: '{.a}'
139138
*
140-
* @param {string} where to expect {} curly. start, middle, end or only.
139+
* @param {string} where to expect {} curly. start, end or only.
141140
* @return {function(string)} Function which testes if string has curly.
142141
*/
143142
exports.hasDelimiters = function (where, options) {
144143

145144
if (!where) {
146-
throw new Error('Parameter `where` not passed. Should be "start", "middle", "end" or "only".');
145+
throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');
147146
}
148147

149148
/**

0 commit comments

Comments
 (0)