diff options
author | Noe Rubinstein <nrubinstein@avencall.com> | 2012-07-16 17:25:06 +0200 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@avencall.com> | 2012-07-16 17:25:06 +0200 |
commit | e6e3697911f9fa43c91e3f5e4fe3309980304c40 (patch) | |
tree | a7cb95385893b9fa2b8e6531a3717034aa84343d | |
parent | 0e2bf91c74407b7149c6f3c71e18946233cb0e17 (diff) |
not really sure what this does though
-rwxr-xr-x | convert2.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/convert2.rb b/convert2.rb index 85a047c..d781cf0 100755 --- a/convert2.rb +++ b/convert2.rb @@ -1,5 +1,6 @@ #!/usr/bin/ruby1.9.1 -$spaces_in_acronym = " " +$acronym_regex = "." +#$acronym_regex = "[\w\d_]" class Reg private def valid_bitnumber(current, new) @@ -33,7 +34,7 @@ class Reg (?'something'\d{1,4}) )? \s+ - (?'acronym'[\w\d_#{$spaces_in_acronym}]+?) + (?'acronym'#{$acronym_regex}+?) \s* $ > |