()
| 179 | } |
| 180 | |
| 181 | function tryGetUsername() { |
| 182 | try { |
| 183 | const username = escapeRegExp(userInfo().username); |
| 184 | return new RegExp(username, 'ig'); |
| 185 | } catch (e) { |
| 186 | logger.info( |
| 187 | `jupyter extension failed to get username info with ${e}\n username will not be obfuscated in local logs` |
| 188 | ); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | function tryGetHomePath() { |
| 193 | try { |
no test coverage detected