mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 08:47:14 +03:00
fix(lexer_en): syntax
This commit is contained in:
parent
918fcc2c06
commit
1664afcafe
@ -528,7 +528,7 @@ let lex_law_en (lexbuf : lexbuf) : token =
|
||||
Star white_space,
|
||||
']',
|
||||
'\n' ) ->
|
||||
let extract_article_title = R.regexp "([#]+)\\s*\\[([^@]+)\\]" in
|
||||
let extract_article_title = R.regexp "([#]+)\\s*\\[([^\\]]+)\\]" in
|
||||
let get_substring =
|
||||
R.get_substring (R.exec ~rex:extract_article_title (Utf8.lexeme lexbuf))
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user