Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

feat(types): implement a serializable regex type#261

Merged
philbooth merged 1 commit into
masterfrom
pb/serializable-regex
Dec 10, 2018
Merged

feat(types): implement a serializable regex type#261
philbooth merged 1 commit into
masterfrom
pb/serializable-regex

Conversation

@philbooth
Copy link
Copy Markdown
Contributor

Extraction from #258.

The configuration endpoint will have a regex property in the payload, which will also be written to Redis. Since regex::Regex doesn't provide implementations of Deserialize or Serialize, we must wrap it to implement them ourselves. This change does that by just serializing the string representation of the regex.

@mozilla/fxa-devs r?

@philbooth philbooth self-assigned this Dec 6, 2018
@philbooth philbooth requested a review from a team December 6, 2018 18:48
@philbooth philbooth force-pushed the pb/serializable-regex branch 2 times, most recently from 3e47e95 to 42ee105 Compare December 7, 2018 16:07
Copy link
Copy Markdown
Contributor

@vladikoff vladikoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@philbooth philbooth force-pushed the pb/serializable-regex branch from 42ee105 to 83d46ae Compare December 10, 2018 21:36
@philbooth philbooth merged commit 8dcf44e into master Dec 10, 2018
@philbooth philbooth deleted the pb/serializable-regex branch December 10, 2018 23:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants