Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

spurious \r in tags files on windows #16

Open
clausreinke opened this issue Sep 3, 2011 · 0 comments
Open

spurious \r in tags files on windows #16

clausreinke opened this issue Sep 3, 2011 · 0 comments

Comments

@clausreinke
Copy link

lib/cfa2/jscfa.js, function getTags, function regexify

On windows, for files with CRLF line terminators, this will generate tag search patterns ending in \r, which will then fail to match in the editor.

workaround: drop \r at the end of tag search patterns (line 3648)

    return "/^" + str.replace(/[\\/$\n\r\t]/g, subst).replace(/\\r$/,'') + "$/"; // double end

A proper fix would avoid splitting CRLF when splitting files into lines.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant