Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome: "To Mozilla format" bug #25

Closed
syoichi opened this issue May 2, 2012 · 2 comments
Closed

Chrome: "To Mozilla format" bug #25

syoichi opened this issue May 2, 2012 · 2 comments
Labels

Comments

@syoichi
Copy link

syoichi commented May 2, 2012

When I converted a userstyle that contains regexp rule using backslashes into "To Mozilla format" userstyle, its first backslash became double.

For example, http://userstyles.org/styles/65020/regexp-test-style.

before
a userstyle that contains regexp rule using backslashes

after
"To Mozilla format" userstyle

On Stylish 0.10, Chrome 18.0.1025.168, Windows 7 Home Premium SP1 64bit.

@JasonBarnabe
Copy link
Contributor

Actually, all backslashes are supposed to be doubled when doing this because your regexp value needs to be escaped using CSS rules. So it's correct that the first backslash is doubled, but incorrect that the rest aren't.

@JasonBarnabe
Copy link
Contributor

Fixed. 9d179c4

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

No branches or pull requests

2 participants