Browse files

[fix] bsljsparse: trim type field in register.

  • Loading branch information...
1 parent f03ed14 commit 614aaa0917c7b48ba99415dabc5421e64b499190 @arthuraa arthuraa committed Aug 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compiler/libbsl/bslJsParse.ml
View
2 compiler/libbsl/bslJsParse.ml
@@ -258,7 +258,7 @@ let extract_register implementation =
) in
try_read_args "register" (fun pos args ->
if Str.string_match re args 0 then
- let ty = Str.matched_group 1 args in
+ let ty = String.trim (Str.matched_group 1 args) in
let ty =
try
`success (snd (BslRegisterParser.parse_bslregisterparser_bslty ty))

0 comments on commit 614aaa0

Please sign in to comment.