You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, the full disclosure first: BBT uses the titlecaser outside the scope of the citation processor running, so it's fully possible that I'm calling it with an illegitimate state, thereby causing the breakage. I've called the citeproc titlecaser in this way for a long time though, and it has always worked before.
I think this must be fixed because I use the titlecaser in my BBT5 work and I've removed the source patches I had in place. I think this can be closed; if new stuff crops up I'll open a new one.
No apologies expected or necessary; I appreciate whatever effort you can put into citeproc.
So, the full disclosure first: BBT uses the titlecaser outside the scope of the citation processor running, so it's fully possible that I'm calling it with an illegitimate state, thereby causing the breakage. I've called the citeproc titlecaser in this way for a long time though, and it has always worked before.
Here's what I'm actually doing:
This has always worked splendidly for me, but with this particular string it errors out with
here: https://github.com/Juris-M/citeproc-js/blob/master/citeproc.js#L14984
I've inspected (what I think is ) the relevant state of the function at that point when it breaks, and I see this:
While I have zero clues on what doppelString is doing, if I replace
with
all my tests pass.
(as an aside, it'd be very useful to me if
makeRegExp
were exposed as a method)The text was updated successfully, but these errors were encountered: