Skip to content

Conversation

@Freubert
Copy link
Contributor

@Freubert Freubert commented Feb 9, 2026

When syncing e.g. weather info on the watch, the display/layout for temperature is broken/misplaced/invisible on lcdclock and lcdclockplus inside the clockinfo menus.
Download
This PR adds an escape character to the hyphen, which broke the weather clockinfo display. It also adds the colon to the regexp to allow this character in the clockinfo.
Download (1)

https://freubert.github.io/BangleApps/

if (info.img) g.drawImage(info.img, options.x+2, options.y+2);
var title = clockInfoItems[options.menuA].name;
var text = info.text.toString().toUpperCase().replace(/[^A-Z0-9-.]/g, "");
var text = info.text.toString().toUpperCase().replace(/[^A-Z0-9.:\-]/g, "");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you mind checking this without the espace character? It won't have any effect since - isn't a special character:

/[-]/ .test("hi - there") // true
/[\-]/.test("hi - there") // true
/[-]/ .test("hi there") // false
/[\-]/.test("hi there") // false

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants