Skip to content

Commit

Permalink
Merge pull request #1419 from dawgfoto/fixMissingThrow
Browse files Browse the repository at this point in the history
missing throw
  • Loading branch information
9rnsr committed Jul 18, 2013
2 parents d946bcd + f7dc61c commit b9e94ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/regex.d
Expand Up @@ -1004,9 +1004,9 @@ struct Parser(R, bool CTFE = false)
}
default:
if(__ctfe)
assert(text("unknown regex flag '",ch,"'"));
assert(text("unknown regex flag '",ch,"'"));
else
new RegexException(text("unknown regex flag '",ch,"'"));
throw new RegexException(text("unknown regex flag '",ch,"'"));
}
}
}
Expand Down

0 comments on commit b9e94ad

Please sign in to comment.