Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Fixes brendanhay#447: Special-case 'V2' suffix for operation names
Browse files Browse the repository at this point in the history
This allows "ListObjectsV2" to be rendered correctly.
  • Loading branch information
rcook committed Feb 26, 2018
1 parent ed9f400 commit c5a3bc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gen/src/Gen/Text.hs
Expand Up @@ -56,6 +56,7 @@ stripSuffix s t = Text.strip . fromMaybe t $ s `Text.stripSuffix` t
renameOperation :: Text -> Text
renameOperation t
| "S3" `Text.isSuffixOf` t = t
| "V2" `Text.isSuffixOf` t = t -- Allow "ListObjectsV2"
| otherwise = Text.dropWhileEnd f (Text.strip t)
where
f x = x == '_'
Expand Down

0 comments on commit c5a3bc8

Please sign in to comment.