mirror of
https://github.com/laochan-eacnet/backend.git
synced 2026-09-28 09:47:58 +03:00
Merge branch 'gitadora' into eacnet
This commit is contained in:
@@ -34,3 +34,4 @@ input.xml
|
||||
output.json
|
||||
dump.xml
|
||||
pdata.json
|
||||
dump.bin
|
||||
|
||||
@@ -185,7 +185,7 @@ export class User {
|
||||
for (const seq in m.seqs) {
|
||||
const rec = m.seqs[seq];
|
||||
if (rec.skill > bestScore) {
|
||||
bestScore = rec.skill;
|
||||
bestScore = rec.skill % 10000;
|
||||
bestSeq = +seq;
|
||||
}
|
||||
|
||||
|
||||
@@ -168,6 +168,10 @@ function serializeValue(value: any, type: string): string {
|
||||
}
|
||||
|
||||
if (['str', 'string'].includes(type)) {
|
||||
if (!value.replace) {
|
||||
return 'null';
|
||||
}
|
||||
|
||||
return value.replace(/[<>&'"]/g, (ch: string) => {
|
||||
switch (ch) {
|
||||
case '<': return '<';
|
||||
|
||||
Reference in New Issue
Block a user