diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 13:44:48 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 13:44:48 +0000 |
commit | 1e097e3cbe424111847e068331dd70c54c622b29 (patch) | |
tree | cd73386fd4e75091209d3118f9f3894fb4ae2c3b | |
parent | 2e78eb9a609f9d9fc697fde01a48c58a431e0445 (diff) |
Cope with macros with numerals in their names.
-rwxr-xr-x | bin/custodian-enqueue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 9a261b7..3a03db7 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -188,7 +188,7 @@ class MonitorConfig # # Get the name # - name = $1.dup if ( line =~ /^([A-Z_]+)\s+/ ) + name = $1.dup if ( line =~ /^([1-2A-Z_]+)\s+/ ) # @@ -253,7 +253,7 @@ class MonitorConfig # Is the given string of text a macro? # def is_macro?( name ) - !@MACROS[name].nil? + !(@MACROS[name]).nil? end @@ -289,7 +289,7 @@ class MonitorConfig # # Look for macro definitions, inline # - if ( line =~ /^([A-Z]_+)\s+are\s+fetched\s+from\s+([^\s]+)\.?/ ) + if ( line =~ /^([0-9A-Z]_+)\s+are\s+fetched\s+from\s+([^\s]+)\.?/ ) define_macro( line ) elsif ( line =~ /^([0-9A-Z_]+)\s+(is|are)\s+/ ) |