mirror of https://github.com/sveltejs/svelte
commit
7d4958b012
@ -1,8 +1,8 @@
|
||||
// https://github.com/darkskyapp/string-hash/blob/master/index.js
|
||||
export default function hash(str: string): number {
|
||||
export default function hash(str: string): string {
|
||||
let hash = 5381;
|
||||
let i = str.length;
|
||||
|
||||
while (i--) hash = ((hash << 5) - hash) ^ str.charCodeAt(i);
|
||||
return hash >>> 0;
|
||||
return (hash >>> 0).toString(36);
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
div.svelte-724714405,.svelte-724714405 div{color:red}
|
||||
div.svelte-300476157,.svelte-300476157 div{color:green}
|
||||
div.svelte-bzh57p,.svelte-bzh57p div{color:red}
|
||||
div.svelte-4yw8vx,.svelte-4yw8vx div{color:green}
|
@ -1,8 +1,8 @@
|
||||
<div class="svelte-724714405">red</div>
|
||||
<div class="svelte-300476157">green: foo</div>
|
||||
<div class="svelte-bzh57p">red</div>
|
||||
<div class="svelte-4yw8vx">green: foo</div>
|
||||
|
||||
|
||||
|
||||
<div class="svelte-300476157">green: bar</div>
|
||||
<div class="svelte-4yw8vx">green: bar</div>
|
||||
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
div.svelte-724714405,.svelte-724714405 div{color:red}
|
||||
div.svelte-300476157,.svelte-300476157 div{color:green}
|
||||
div.svelte-bzh57p,.svelte-bzh57p div{color:red}
|
||||
div.svelte-4yw8vx,.svelte-4yw8vx div{color:green}
|
@ -1,8 +1,8 @@
|
||||
<div class="svelte-724714405">red</div>
|
||||
<div class="svelte-300476157">green: foo</div>
|
||||
<div class="svelte-bzh57p">red</div>
|
||||
<div class="svelte-4yw8vx">green: foo</div>
|
||||
|
||||
|
||||
|
||||
<div class="svelte-300476157">green: bar</div>
|
||||
<div class="svelte-4yw8vx">green: bar</div>
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
div.svelte-724714405,.svelte-724714405 div{color:red}
|
||||
div.svelte-bzh57p,.svelte-bzh57p div{color:red}
|
@ -1 +1 @@
|
||||
<div class="svelte-724714405">red</div>
|
||||
<div class="svelte-bzh57p">red</div>
|
@ -1 +1 @@
|
||||
div.svelte-724714405,.svelte-724714405 div{color:red}
|
||||
div.svelte-bzh57p,.svelte-bzh57p div{color:red}
|
@ -1 +1 @@
|
||||
<div class="svelte-724714405">red</div>
|
||||
<div class="svelte-bzh57p">red</div>
|
@ -1,2 +1,2 @@
|
||||
.foo.svelte-1719932608{color:red}
|
||||
.foo.svelte-sg04hs{color:red}
|
||||
/*# sourceMappingURL=output.css.map */
|
@ -1,2 +1,2 @@
|
||||
.svelte-1719932608.foo,.svelte-1719932608 .foo{color:red}
|
||||
.svelte-sg04hs.foo,.svelte-sg04hs .foo{color:red}
|
||||
/*# sourceMappingURL=output.css.map */
|
Loading…
Reference in new issue