Skip to content

Commit

Permalink
Update Alloy/commands/compile/compilerUtils.js
Browse files Browse the repository at this point in the history
Co-Authored-By: brentonhouse <brenton.house@gmail.com>
  • Loading branch information
ewanharris and brentonhouse committed Mar 29, 2019
1 parent a872ff8 commit 54c5a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alloy/commands/compile/compilerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ exports.getParserArgs = function(node, state, opts) {

// find platform specific attributes
var attributeParts = attrName.split(':');
if ( attributeParts.length === 2 ) {
if ( attributeParts.length === 2 && _.includes(CONST.PLATFORMS, attributeParts[0])) {
// if this attribute is for this platform, create it without namespace.
if ( attributeParts[0] === compilerConfig.alloyConfig.platform ) {
attrName = attributeParts[1];
Expand Down

0 comments on commit 54c5a26

Please sign in to comment.