All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
16 lines
313 B
JavaScript
16 lines
313 B
JavaScript
module.exports = checkStrong
|
|
|
|
function checkStrong(context) {
|
|
var marker = context.options.strong || '*'
|
|
|
|
if (marker !== '*' && marker !== '_') {
|
|
throw new Error(
|
|
'Cannot serialize strong with `' +
|
|
marker +
|
|
'` for `options.strong`, expected `*`, or `_`'
|
|
)
|
|
}
|
|
|
|
return marker
|
|
}
|