mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
* change return value for new version of pubsub * add support for the other bloomberg newsletters not only business * add default fallback url if newsletter url not found * revert pubsub version change
10 lines
308 B
TypeScript
10 lines
308 B
TypeScript
import { NewsletterHandler } from './newsletter'
|
|
|
|
export class GolangHandler extends NewsletterHandler {
|
|
constructor() {
|
|
super()
|
|
this.senderRegex = /<.+@golangweekly.com>/
|
|
this.urlRegex = /<a href=["']([^"']*)["'].*>Read on the Web<\/a>/
|
|
this.defaultUrl = 'https://golangweekly.com/'
|
|
}
|
|
}
|