더이상 사용하지 않는 filter.js 제거
This commit is contained in:
25
js/filter.js
25
js/filter.js
@ -1,25 +0,0 @@
|
|||||||
if (typeof(FILTER_JS) == 'undefined') // 한번만 실행
|
|
||||||
{
|
|
||||||
if (typeof g4_cf_filter == 'undefined')
|
|
||||||
alert('g4_cf_filter 변수가 선언되지 않았습니다. js/filter.js');
|
|
||||||
|
|
||||||
var FILTER_JS = true;
|
|
||||||
|
|
||||||
// 금지단어 필터링
|
|
||||||
function word_filter_check(v)
|
|
||||||
{
|
|
||||||
var trim_pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자 // 양쪽 공백 없애기 trim()
|
|
||||||
var filter = g4_cf_filter;
|
|
||||||
var s = filter.split(",");
|
|
||||||
|
|
||||||
for (i=0; i<s.length; i++)
|
|
||||||
{
|
|
||||||
s[i] = s[i].replace(trim_pattern, "");
|
|
||||||
|
|
||||||
if (s[i]=="") continue;
|
|
||||||
if (v.indexOf(s[i]) != -1)
|
|
||||||
return s[i];
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user