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

AO3-5799 Allow string value for quotes property in skins #4931

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BoldestDungeon
Copy link
Contributor

Issue

https://otwarchive.atlassian.net/browse/AO3-5799

Purpose

  • Updates the CSS Cleaner to accept a quotes-style entry of 1-4 single-character values, separated by spaces

Testing Instructions

  • Please refer to testing instructions in the JIRA ticket

References

Are there other relevant issues/pull requests/mailing list discussions?

Credit

David Bilsky/Ironskink (He/Him)

* Updates the CSS Cleaner to accept a `quotes`-style entry of 1-4 single-character values, separated by spaces
@BoldestDungeon BoldestDungeon force-pushed the AO3-5799__setStringValuesForQuotes branch from bfa580a to 3c4728c Compare September 23, 2024 15:52
@brianjaustin brianjaustin changed the title AO3-5799: Allow string value for quotes property in skins AO3-5799 Allow string value for quotes property in skins Sep 27, 2024
@@ -32,6 +32,11 @@ module CssCleaner
DROP_SHADOW_VALUE_REGEX = Regexp.new("\\(\\s*(#{NUMBER_WITH_UNIT_REGEX}|#{COLOR_REGEX}\\s*)+\\s*\\)")
DROP_SHADOW_FUNCTION_REGEX = Regexp.new("#{DROP_SHADOW_NAME_REGEX}#{DROP_SHADOW_VALUE_REGEX}")

# quotes can take up to 4 characters, wrapped in quotation marks and separated by spaces, including escaped tokens
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell, literally anything is allowed in the strings and there can be any number of pairs. With this code, the "They said" example I linked doesn't work.

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

Successfully merging this pull request may close these issues.

2 participants