Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix: proxy init, ignore confusing characters
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Mar 21, 2021
1 parent 015562d commit aa502e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crawler/casLogIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class AES {
}

randomString(len) {
const str = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz1234567890'
const str = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'
return Array(len)
.fill(null)
.reduce((s = '') => (s += str.charAt(Math.floor(Math.random() * 48))), '')
Expand Down
2 changes: 1 addition & 1 deletion crawler/school-edge-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const defaultProps = {

module.exports = (schoolName) =>
schoolName
? new Proxy(schoolEdgeCases[schoolName], {
? new Proxy(schoolEdgeCases[schoolName] || {}, {
get(target, prop, receiver) {
if (target[prop] === undefined) {
return defaultProps[prop]
Expand Down

0 comments on commit aa502e8

Please sign in to comment.