We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc68522 commit 173b9abCopy full SHA for 173b9ab
test/test.js
@@ -152,12 +152,11 @@ describe('vue-loader', function () {
152
getFile('test.build.js', function (code) {
153
var line
154
var col
155
- var lines = code.split(/\r?\n/g)
156
var targetRE = /^\s+msg: 'Hello from Component A!'/
157
- lines.some(function (l, i) {
+ code.split(/\r?\n/g).some(function (l, i) {
158
if (targetRE.test(l)) {
159
- line = i
160
- col = lines[i - 1].length
+ line = i + 1
+ col = l.length
161
return true
162
}
163
})
0 commit comments