Explorar o código

improve regex

jomo %!s(int64=5) %!d(string=hai) anos
pai
achega
7ad6f85aec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/helpers.js

+ 1 - 1
lib/helpers.js

@@ -8,7 +8,7 @@ var path = require("path");
 var fs = require("fs");
 
 // 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]+$/;
 
 // gets the hash from the textures.minecraft.net +url+