stan-dev / rstan

RStan, the R interface to Stan
https://mc-stan.org
1.04k stars 267 forks source link

ignore all spacing in regex for lp_accum functions #1099

Closed sbfnk closed 1 year ago

sbfnk commented 1 year ago

Summary:

Fixes #1098 by allowing line breaks to happen anywhere in the line that needs to be replaced. Previous PR #1094 did not completely fix this problem.

Intended Effect:

Example in Issue #1098 works.

How to Verify:

Test example in Issue #1098.

Side Effects:

None

Documentation:

n/a

Reviewer Suggestions:

@andrjohns

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Sebastian Funk (I guess? Happy to forfeit).

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: