diff --git a/core/test/utils/jscs-rules/disallow-object-controller.js b/core/test/utils/jscs-rules/disallow-object-controller.js index 105740813f..6feb2c90f5 100644 --- a/core/test/utils/jscs-rules/disallow-object-controller.js +++ b/core/test/utils/jscs-rules/disallow-object-controller.js @@ -22,7 +22,7 @@ module.exports.prototype = { var lines = file.getLines(); lines.forEach(function (line, index) { - var location = line.indexOf(/ObjectController.extend/); + var location = line.indexOf('ObjectController.extend'); if (location !== -1) { errors.add('Ember.ObjectController is deprecated, please use Ember.Controller and access model properties directly.', index + 1, location + 1);