Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
updated regexp for {Fn::GetAtt:[resource,attribute]}
Browse files Browse the repository at this point in the history
  • Loading branch information
dng-dev authored Aug 29, 2016
1 parent 82b27d6 commit bcadd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StackFormation/Preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ protected function replaceRef($jsonString)
* @return mixed
*/
protected function replaceFnGetAttr($jsonstring){
return preg_replace('/\{\s*Fn::GetAtt:\[\s*([a-zA-Z0-9:]+?)\s*,\s*([a-zA-Z0-9:]+?)\s*\]\}/',
return preg_replace('/\{\s*Fn\s*::\s*GetAtt\s*:\s*\[\s*([a-zA-Z0-9:]+?)\s*,\s*([a-zA-Z0-9:]+?)\s*\]\s*\}/',
'", {"Fn::GetAtt": ["$1", "$2"]} ,"', $jsonstring);
}
}

0 comments on commit bcadd8b

Please sign in to comment.