mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 04:01:52 +00:00
fix: bfdca11761
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bfdca11761
commit
c5980cf1fd
@ -742,7 +742,7 @@ $.fn.source_code_form_group = function(name, text, langs_options_html) {
|
||||
|
||||
var show_help_forbidden_code = function(lang, code) {
|
||||
if (lang == 'C' || lang.startsWith('C++')) {
|
||||
if (/(^|\n)\s*#pragma/.test(code)) {
|
||||
if (/\n\s*#pragma/.test('\n' + code)) {
|
||||
div_help_forbidden_code.text('注意:C/C++ 程序源代码中不应包含 #pragma 指令,这在正式比赛中是不被允许的。');
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user