Skip to content

Commit

Permalink
closurebuilder - Allow any value for MONETATE_FLAG
Browse files Browse the repository at this point in the history
  • Loading branch information
lomegor committed Apr 25, 2018
1 parent e4b1514 commit b597265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions closure/bin/build/closurebuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
^(mc\. # Must be a property of the monetate common namespace. Capture group 1.
[a-zA-Z]+\. # Must have it's own module namespace. Capture group 1.
[A-Z0-9_]+) # Must follow the constant format. Capture group 1.
=(true|false)$ # Must assign a boolean. Capture group 2.
=(.*)$ # Must assign a value. Capture group 2.
"""

Expand Down Expand Up @@ -277,7 +277,7 @@ def main():
monetate_flag_value = monetate_flag_group[1]

# Make sure property is defined in the source.
monetate_define_re = re.compile('%s\s*=\s*(true|false)\s*;' % monetate_flag_property)
monetate_define_re = re.compile('%s\s*=\s*(.*)\s*;' % monetate_flag_property)
if not monetate_define_re.search(script_source):
logging.error('--monetate-flag: %s was not found in script source.', monetate_flag_property)
sys.exit(2)
Expand Down

0 comments on commit b597265

Please sign in to comment.