Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
peyerluk committed Mar 20, 2018
1 parent d07c86b commit e541df2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ module.exports = {
if (pattern) {
if (pattern instanceof RegExp) {
if (pattern.flags) {
throw new Error('JSON schema does not support regexp flags: ' +
`${pattern}`)
throw new Error(`JSON schema does not support regexp flags: ${pattern}`)
}
s.pattern = pattern.source
} else {
Expand Down

0 comments on commit e541df2

Please sign in to comment.