303 insertTextToInputArea("crolldelay=");
304 return;
305 }
306 const doCloseMqTag = text.match(/\[mq(.*)?\]([^\[]*)$/gi);307 if(doCloseMqTag)
308 {
309 insertTextToInputArea(" [/mq]");
231 * 순서 상관 없이 하려면 속성 값 부분 통채로 함수에 넘겨서 처리하도록 하면 됨.
232 *
233 * */
234 text = text.replace(/\[mq( direction=[^\ ]*)?( behavior=[^\ ]*)?( loop=[^\ ]*)?( scrollamount=[^\ ]*)?( scrolldelay=[^\ ]*)?\](.+)\[\/mq\]/gi, replaceMarquee);235
236 return text;
237}
231 * 순서 상관 없이 하려면 속성 값 부분 통채로 함수에 넘겨서 처리하도록 하면 됨.
232 *
233 * */
234 text = text.replace(/\[mq( direction=[^\ ]*)?( behavior=[^\ ]*)?( loop=[^\ ]*)?( scrollamount=[^\ ]*)?( scrolldelay=[^\ ]*)?\](.+)\[\/mq\]/gi, replaceMarquee);235
236 return text;
237}
231 * 순서 상관 없이 하려면 속성 값 부분 통채로 함수에 넘겨서 처리하도록 하면 됨.
232 *
233 * */
234 text = text.replace(/\[mq( direction=[^\ ]*)?( behavior=[^\ ]*)?( loop=[^\ ]*)?( scrollamount=[^\ ]*)?( scrolldelay=[^\ ]*)?\](.+)\[\/mq\]/gi, replaceMarquee);235
236 return text;
237}
231 * 순서 상관 없이 하려면 속성 값 부분 통채로 함수에 넘겨서 처리하도록 하면 됨.
232 *
233 * */
234 text = text.replace(/\[mq( direction=[^\ ]*)?( behavior=[^\ ]*)?( loop=[^\ ]*)?( scrollamount=[^\ ]*)?( scrolldelay=[^\ ]*)?\](.+)\[\/mq\]/gi, replaceMarquee);235
236 return text;
237}
Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect.
"\'";
'\"';
"\#";
"\e";
`\"`;
`\"${foo}\"`;
`\#{foo}`;
/\!/;
/\@/;
"\"";
'\'';
"\x12";
"\u00a9";
"\371";
"xs\u2111";
`\``;
`\${${foo}}`;
`$\{${foo}}`;
/\/g;
/\t/g;
/\w\$\*\^\./;