mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
improve regex
This commit is contained in:
parent
b87be6f9f3
commit
7ad6f85aec
@ -8,7 +8,7 @@ var path = require("path");
|
|||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
|
|
||||||
// 0098cb60-fa8e-427c-b299-793cbd302c9a
|
// 0098cb60-fa8e-427c-b299-793cbd302c9a
|
||||||
var valid_user_id = /^[0-9a-f-A-F-]{32,36}$/; // uuid
|
var valid_user_id = /^[0-9a-fA-F\-]{32,36}$/; // uuid
|
||||||
var hash_pattern = /[0-9a-f]+$/;
|
var hash_pattern = /[0-9a-f]+$/;
|
||||||
|
|
||||||
// gets the hash from the textures.minecraft.net +url+
|
// gets the hash from the textures.minecraft.net +url+
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user