Skip to content

Commit 23a20ce

Browse files
S-YOUkazupon
authored andcommitted
chore: \s match all whitespaces (#5091)
1 parent 62e4f2b commit 23a20ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/features/directives/once.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,5 @@ describe('Directive v-once', () => {
338338
})
339339

340340
function expectTextContent (vm, text) {
341-
expect(vm.$el.textContent.replace(/\r?\n|\r|\s/g, '')).toBe(text)
341+
expect(vm.$el.textContent.replace(/\s+/g, '')).toBe(text)
342342
}

0 commit comments

Comments
 (0)