Skip to content

Commit

Permalink
fix other missing escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 27, 2015
1 parent 6ba7305 commit 2704024
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/types/src/modules/String.rb
Expand Up @@ -44,7 +44,7 @@ def main
@calnum = Ops.add(@calpha, @cdigit)
@cpunct = "!\"\#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
@cgraph = Ops.add(@calnum, @cpunct)
@cspace = "\f\r\n\t\013"
@cspace = "\f\r\n\t\v"
@cprint = Ops.add(@cspace, @cgraph)

# 64 characters is the base undeline length
Expand Down Expand Up @@ -491,14 +491,14 @@ def ParseOptions(options, parameters)

# backslah sequences
backslash_seq = {
"a" => "a", # alert
"a" => "\a", # alert
"b" => "\b", # backspace
"e" => "e", # escape
"e" => "\e", # escape
"f" => "\f", # FF
"n" => "\n", # NL
"r" => "\b", # CR
"r" => "\r", # CR
"t" => "\t", # tab
"v" => "v", # vertical tab
"v" => "\v", # vertical tab
"\\" => "\\"
} # backslash

Expand Down

1 comment on commit 2704024

@mvidner
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you have corrected it here, sorry for the noise.

Please sign in to comment.