Page MenuHomePhabricator

Settings - upgrade monospace font regexp to support '.'
ClosedPublic

Authored by btrahan on Aug 6 2014, 5:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 9:56 AM
Unknown Object (File)
Thu, Mar 21, 3:30 PM
Unknown Object (File)
Thu, Mar 21, 3:30 PM
Unknown Object (File)
Mar 16 2024, 6:23 PM
Unknown Object (File)
Mar 14 2024, 3:02 AM
Unknown Object (File)
Mar 13 2024, 7:33 PM
Unknown Object (File)
Mar 5 2024, 5:34 AM
Unknown Object (File)
Feb 11 2024, 10:59 AM

Details

Summary

this data is a little weird since its user-entered and we need to put it in a web page un-escaped for the font to load correctly. Ergo, we use a regex to make the input safe / sane, and said regex needs to support a '.'. Fixes T5810.

Test Plan

added Fixedsys Excelsior 3.01 to my system and was able to set my preference and get the new font

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Settings - upgrade monospace font regexp to support '.'.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.

Should we also consider to add also an underscore? I've already met that in some _webfont in the past, but only in test fonts.

I see this is frowned upon at http://typophile.com/node/52771 but it doesn't allow to quit the protected string and write arbitray CSS.

epriestley edited edge metadata.

For reference, D7274 was another effort in this vein that reached further and which I was able to break out of. This seems fine, though.

This revision is now accepted and ready to land.Aug 6 2014, 6:24 PM
btrahan updated this revision to Diff 24453.

Closed by commit rP20a65b21eba9 (authored by @btrahan).