Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEmacs
title에디터 설정
//...
'editor.menu.definition': {
	//...,
	'tools': [
		//...,
		'personalDataProtection',
		//...
	],
	//...
},
//...

config설정

Status
colourYellow
title릴리즈 2.15.0 이상

개인정보보호 검사규칙을 추가하거나 수정 할 수 있습니다.

Code Block
languagejs
themeEmacs
title에디터 설정
// config설정 예제
'personalDataProtection.config': {
    'phoneNumber': { // 기존 개인정보보호 설정값 수정
        replaceText: (text, replaceChar, regExp) => {
            let index = 0;
            return text.replace(/\d+/g,  (match) => index++ === 1 ? match.replace(/\d/g, replaceChar) : match);
        }
    },
    'SynapSoft': { // 새로운 개인정보보호 설정
        regExp: /synapsoft/gi,
        replaceText: (text, replaceChar, regExp) => {
            return text.replace(/[s]/gi, replaceChar);
        }
    }
}

API

editor.checkPersonalData(callback)

...