mirror of https://github.com/sveltejs/svelte
differentiate between nbsp and other whitespace (#348)
parent
d8dbe4e94e
commit
ce6178d281
@ -1 +1 @@
|
|||||||
export const whitespace = /\s/;
|
export const whitespace = /[ \t\r\n]/;
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
export default {
|
||||||
|
html: `<span> </span>`,
|
||||||
|
|
||||||
|
test ( assert, component, target ) {
|
||||||
|
const text = target.querySelector( 'span' ).textContent;
|
||||||
|
assert.equal( text.charCodeAt( 0 ), 160 );
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
<span> </span>
|
@ -0,0 +1 @@
|
|||||||
|
<span> </span>
|
Loading…
Reference in new issue