diff options
author | Yorhel <git@yorhel.nl> | 2014-12-28 12:47:16 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-12-28 12:47:16 +0100 |
commit | ced53e5d7ea385fe6c53ed75a20ec16b027e5c5d (patch) | |
tree | c25f53493294319aac6e31aebbf2bdf1ba5a6f71 | |
parent | 30acfccc74971acaf0addd521cf24bbb5221618b (diff) |
js: Fix ||| matching regex
-rw-r--r-- | data/script.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/script.js b/data/script.js index 66520724..d0548de1 100644 --- a/data/script.js +++ b/data/script.js @@ -2235,7 +2235,7 @@ function vnsSerialize() { var aid = byName(byClass(l[i], 'tc_name')[0], 'input')[0]; var role = byName(byClass(l[i], 'tc_role')[0], 'select')[0]; var note = byName(byClass(l[i], 'tc_note')[0], 'input')[0].value; - note = note.replace(/|||+/g, '||'); + note = note.replace(/\|\|\|+/g, '||'); c.push (aid.value+'-'+role.value+'-'+note); } byId('credits').value = c.join('|||'); @@ -2401,7 +2401,7 @@ function vncSerialize() { var aid = byName(byClass(l[i], 'tc_name')[0], 'input')[0]; var role = byName(byClass(l[i], 'tc_char')[0], 'select')[0]; var note = byName(byClass(l[i], 'tc_note')[0], 'input')[0].value; - note = note.replace(/|||+/g, '||'); + note = note.replace(/\|\|\|+/g, '||'); c.push (aid.value+'-'+role.value+'-'+note); } byId('seiyuu').value = c.join('|||'); |