...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//... 'editor.menu.definition': { //..., 'tools': [ //..., 'personalDataProtection', //... ], //... }, //... |
config설정
Status colour Yellow title 릴리즈 2.15.0 이상
개인정보보호 검사규칙을 추가하거나 수정 할 수 있습니다.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
// 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)
...