This commit is contained in:
Maciej Caderek
2022-04-21 22:26:07 +02:00
parent 21a3d886a4
commit 70e0a3634b
63 changed files with 700 additions and 390 deletions

View File

@@ -1,5 +1,5 @@
const REGEX =
/((\[[a-z0-9]+ +"[^"\n\r]+"](\r\n|\r|\n))*(\r\n|\r|\n)+){0,1}\d+\. +[a-h1-8x+#=]+/i;
/((\[[a-z0-9]+ +"[^"\n\r]+"](\r\n|\r|\n))*(\r\n|\r|\n)+){0,1}\d+\. *[a-h1-8x+#=]+/i;
const isPGN = (data: string) => {
return REGEX.test(data);