Use includes instead of indexOf
This commit is contained in:
@@ -59,7 +59,7 @@ exports.publish = function (data, opts) {
|
||||
if (
|
||||
constructor &&
|
||||
constructor.substr(-1) === '_' &&
|
||||
constructor.indexOf('module:') === -1
|
||||
!constructor.includes('module:')
|
||||
) {
|
||||
assert.strictEqual(
|
||||
doc.inherited,
|
||||
|
||||
Reference in New Issue
Block a user