1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-11 21:29:13 +09:00
This commit is contained in:
syuilo 2017-02-09 21:56:17 +09:00
parent 7bec5e52be
commit e7cd3d3707

View File

@ -110,6 +110,8 @@ const elements = [
for (let i = 1; i < code.length; i++) { for (let i = 1; i < code.length; i++) {
const char = code[i]; const char = code[i];
if (char == '\\') { if (char == '\\') {
str += char;
str += code[i + 1] || '';
i++; i++;
continue; continue;
} else if (char == begin) { } else if (char == begin) {
@ -140,6 +142,8 @@ const elements = [
for (let i = 1; i < code.length; i++) { for (let i = 1; i < code.length; i++) {
const char = code[i]; const char = code[i];
if (char == '\\') { if (char == '\\') {
regexp += char;
regexp += code[i + 1] || '';
i++; i++;
continue; continue;
} else if (char == '/') { } else if (char == '/') {