slightly better regex
This commit is contained in:
parent
792d74d541
commit
fa654a7646
@ -38,7 +38,7 @@ define([
|
|||||||
var hostname = window.location.hostname;
|
var hostname = window.location.hostname;
|
||||||
|
|
||||||
// don't do anything funny unless you're on a cryptpad subdomain
|
// don't do anything funny unless you're on a cryptpad subdomain
|
||||||
if (!/cryptpad.fr/i.test(hostname)) { return; }
|
if (!/cryptpad.fr$/i.test(hostname)) { return; }
|
||||||
|
|
||||||
if (hash.length >= 56) {
|
if (hash.length >= 56) {
|
||||||
// you're on the right domain
|
// you're on the right domain
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user