hwkr / UVicSchedule

Pulls you UVic Schedule into your Calendar
MIT License
1 stars 4 forks source link

Clean up course title tokenization #4

Closed dkisselev closed 1 year ago

dkisselev commented 8 years ago

Previous regex-based solution broke on any special characters in the title, just splitting the string on ' - ' seems to work better

hwkr commented 8 years ago

I feel like the regex is better for predictable behavior, i.e., the regex will throw an exception is the course isn't formatted correctly whereas this may produce unexpected behavior